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
6.3 K Users
20 Questions 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 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.

More Programming with 8085 Questions

More Microprocessors Questions

Get Free Access Now
Hot Links: teen patti palace real cash teen patti teen patti dhani