Question
Download Solution PDFIn 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
Answer (Detailed Solution Below)
Detailed Solution
Download Solution PDFConcept:
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
Last updated on May 28, 2025
-> UPSC ESE admit card 2025 for the prelims exam has been released.
-> The UPSC IES Prelims 2025 will be held on 8th June 2025.
-> The selection process includes a Prelims and a Mains Examination, followed by a Personality Test/Interview.
-> Candidates should attempt the UPSC IES mock tests to increase their efficiency. The UPSC IES previous year papers can be downloaded here.