Escolar Documentos
Profissional Documentos
Cultura Documentos
AIM:
ALGORITHM:
8-BIT MULTIPLICATION:
PROGRAM:
ALGORITHM:
8-BIT DIVISION:
PROGRAM:
PROCEDURE:
OBSERVATION :
Thus the assembly language programs for 8-bit multiplication and division are
written, executed and the results are verified.
2. 16-BIT ADDITION AND SUBTRACTION
AIM:
APPARATUS REQUIRED:
16-BIT ADDITION:
ALGORITHM:
PROGRAM:
16-BIT SUBTRACTION:
ALGORITHM:
OBSERVATION :
Result:
Thus the assembly language programs for 16-bit addition and subtraction are
written, executed and the results are verified.
3. 16-BIT MULTIPLICATION AND DIVISION
AIM:
APPARATUS REQUIRED:
ALGORITHM:
16-BIT MULTIPLICATION:
PROGRAM:
16-BIT DIVISION:
ALGORITHM:
PROGRAM:
PROCEDURE:
OBSERVATION :
Result:
Thus the assembly language program for 16-bit multiplication is written, executed
and the results are verified.
4. DECIMAL ARITHMETIC AND BIT MANIPULATION
AIM:
APPARATUS REQUIRED:
BCD ADDITION:
ALGORITHM:
PROGRAM:
BCD SUBTRACTION:
ALGORITHM:
PROGRAM:
ALGORITHM:
PROGRAM:
PROCEDURE:
Result:
Thus the assembly language programs for BCD Addition, BCD Subtraction and
Bit manipulation (BCD to Binary conversion) are written, executed and the results are
verified.
5. CODE CONVERSION
AIM:
APPARATUS REQUIRED:
BINARY TO ASCII:
ALGORITHM:
FLOWCHART:
PROGRAM:
4112
4113 Code: CPI 0A Compare immediate 0a with the content
of accumulator
4114
4115 JC L1 Jump on carry to label location L1
4116 ADI 07 ADD immediate 07, with the content of
accumulator
4117
4118 L1 ADI 30 ADD immediate 30, with the content of
accumulator
4119
411A RET Return to main program
OBSERVATION :
Thus the assembly language programs for the code conversion (Binary to ASCII
and ASCII to Binary) are written, executed and the results are verified.
VIVA QUESTIONS:
MATRIX MULTIPLICATION
AIM:
ALGORITHM:
1. Define the segments and the data for two matrices ant their size using the
respective assembler directives.
2. Get the offset addresses of Matrix 1 & 2 in corresponding index registers.
3. Clear Accumulator and Lower byte of flag register.
4. Multiply the elements of corresponding row and column in sequence, for matrix
multiplication using loop.
5. Store the result and stop execution.
FLOWCHART:
PROGRAM:
PROCEDURE:
RESULT:
The program for performing 3x3 matrix multiplication is written, executed and
the result is verified.
INTERFACING KEYBOARD/DISPLAY CONTROLLER TO 8085
AIM:
To interface Keyboard/Display controller(8279) with 8085 processor and to
display a particular string.
FLOWCHART:
PROGRAM:
PROCEDURE:
Result:
The Keyboard/Display controller is interfaced with 8085 and the character display
is verified.
SIMPLE ARITHMETIC OPERATIONS USING 8051
AIM:
APPARATUS REQUIRED:
ALGORITHM:
8-BIT ADDITION:
1. Clear carry flag.
2. Get the first data in accumulator.
3. Add the second data with that of accumulator.
4. Store the result in a memory location.
5. Stop execution.
Flowchart:
PROGRAM:
ALGORITHM:
8-BIT SUBTRACTION:
1. Clear carry Flag.
2. Get the first data in accumulator.
3. Subtract the second data from that of accumulator.
4. Store the result in a memory location.
5. Stop execution.
6.
FLOCHART:
PROGRAM:
ALGORITHM:
8-BIT MULTIPLICATION:
1. Get the first data in accumulator.
2. Get the second data in B register.
3. Multiply the two data.
4. Store the result in a memory location.
5. Stop execution.
FLOWCHART:
PROGRAM:
ALGORITHM:
8-BIT DIVISION:
FLOWCHART:
PROGRAM:
OBSERVATION:
RESULT: