In an 8085 microprocessor system, the following program starts at location 0100H LXI SP 00FF LXI H 0701 MVI A 20H SUB M The content of the accumulator when the program counter reaches 0107 H is
In an 8085 microprocessor system, the following program starts at location 0100H LXI SP 00FF LXI H 0701 MVI A 20H SUB M The content of the accumulator when the program counter reaches 0107 H is Correct Answer 20 H
Concept:
LXI is a 3 Byte Instruction
MVI is a 2 Byte Instruction
SUB is a 1 Byte Instruction
Analysis:
0100 LXI (Op Code Fetch)
0101 -- FF (Lower Order Bits)
0102 -- 00 (Higher Order Bits)
0103 -- LXI (Op Code Fetch)
0104 -- 01
0105 -- 07
0106 -- MVI A (Op Code Fetch)
0107 -- 20 H
∴ The content of the accumulator when the program counter reaches 0107 H is 20 H
মোঃ আরিফুল ইসলাম
Feb 20, 2025