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

This question was previously asked in
ESE Electrical 2013 Paper 2: Official Paper
View all UPSC IES Papers >
  1. 20 H
  2. 02 H
  3. 00 H
  4. FF H

Answer (Detailed Solution Below)

Option 1 : 20 H
Free
ST 1: UPSC ESE (IES) Civil - Building Materials
20 Qs. 40 Marks 24 Mins

Detailed Solution

Download Solution PDF

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

Latest UPSC IES Updates

Last updated on Jul 2, 2025

-> ESE Mains 2025 exam date has been released. As per the schedule, UPSC IES Mains exam 2025 will be conducted on August 10. 

-> UPSC ESE result 2025 has been released. Candidates can download the ESE prelims result PDF from here.

->  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.

More Programming with 8085 Questions

Hot Links: teen patti winner teen patti wealth teen patti dhani teen patti master update teen patti master official