Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
PROCEDURE:
1. Draw the flow chart.
2. Write the op-codes for the Mnemonics instructions.
3. Feed the op-codes in the Microprocessor 8085 kit.
4. Execute the entered program.
ALGORITHM:
1. Load 2050 in H-L reg. pair
2. Move 1st number to accumulator from memory location 2050.
3. Increment H-L register pair data.
4. Subtract the numbers of memory from accumulator (Result is stored in
Accumulator)
5. Jump to 2012 if carry is not generated otherwise take 2’s complement.
6. Move the result to memory locations 2052 and 2053.
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 8 bit numbers have been subtracted & the result can be verified at 2052 & 2053.
QUESTIONS:
1. In the instruction INR or DCR carry flag gets affected while in INX or DCX
carry flag does not get affected ,why.
2. If flags are individual FFs, can they be observed on an oscilloscope.
3. If program counter is always one count ahead of memory location from which
the machine code is being fetched , how does the microprocessor change the
sequence of program execution .
PROGRAM