Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
DESCRIPTION: The program takes the content of memory location 2050-2051 add
it to the contents of 2052-2053 and stores the result back at 2054,
2055 & 2056.
PROCEDURE:
1. Draw the flow chart.
2. Write the op-codes for the Mnemonics instructions.
3. Plug the PS/2 connector of the keyboard to microprocessor 8085 kit.
4. Feed the op-codes in the Microprocessor 8085 kit.
5. After ending press $
6. See the result by pressing G<Program Address>
7. Note the result before and after execution.
ALGORITHM:
1. Move the contents of 2050 to Accumulator.
2. Add the contents of Accumulator and 2051.
3. Store the result in 2054.
4. Move the contents of 2052 to Accumulator.
5. Add the contents of Accumulator and 2053.
6. Store the result in 2055.
7. Clear Accumulator
8. Rotate the contents of Accumulator.
9. Carry will be stored in 2056.
PRECAUTIONS:
1. Check for proper connections of power supply.
2. Enter the codes in the Microprocessor kit properly.
3. Always remember the exact address location where you had started.
RESULT:
Two 16 bit numbers have been added & the result can be verified at 2054, 2055 &
2056.
QUESTIONS :
1. Does the flags get affected by shifting operation.
2. Write the addressing mode of RAL , STA instructions.
3. Write the number of bytes in the following instructions:
INX H
LXI H , 2050
ADC M
STA 2055
PROGRAM :