GATE EE 2020 Set 1 — Question 64
Go beyond PYQs with Success TrackerAI-powered personalised practice and doubt support. Unlimited practice on eligible plans; AI usage limits apply.NAT+2 / -0MediumDigital Logic CircuitsAnalog & Digital Electronics
Analog & Digital Electronics → Digital Logic Circuits
Last updated
Question
An 8085 microprocessor accesses two memory locations (2001H) and (2002H), that contain 8-bit numbers 98H and B1H, respectively. The following program is executed:At the end of this program, the memory location 2003H contains the number in decimal (base 10) form ______.
LXI H,2001H
MVI A, 21H
INX H
ADD M
INX H
MOV M, A
HLT
Correct answer
210 to 210
Solution
Step-by-step execution:
.
1.
LXI H, 2001H: Load HL register pair with 2001H. HL = 2001H.2.
MVI A, 21H: Load Accumulator A with 21H. A = 21H.3.
INX H: Increment HL pair. HL = 2002H.4.
ADD M: Add content of memory location pointed by HL to A. A = A + [2002H] = 21H + B1H = D2H.5.
INX H: Increment HL pair. HL = 2003H.6.
MOV M, A: Move content of A to memory location pointed by HL. [2003H] = A = D2H.7.
The value in 2003H is D2H. Converting D2H to decimal:HLT: Halt execution..
Continue learning with Success Tracker
A step still unclear? Work through it with support
Use Success Tracker to ask about the reasoning, then try another GATE EE question to check your understanding.
AI-powered practice· Unlimited practice on eligible plans
- PYQs with solutions
- Attempt available previous-year questions, then compare your reasoning with the worked solution. Coverage varies by stream.
- Practice that adapts
- Choose a topic, work on weaker areas and bookmark questions to revisit. Your attempts feed your progress tracking.
- AI doubt support
- Ask follow-up questions about a step or concept while practising, instead of stopping at the final answer.
Unlimited practice is available on eligible plans. Free practice and AI usage have limits; check the current plan allowances before choosing.
This page stays readable without an account. AI responses can be wrong; check them against the solution and source material.
More questions on Digital Logic Circuits
2026 Set 1 Q33In the linear regulator circuit shown, the base to emitter voltage of the BJT is…2026 Set 1 Q37In the circuit shown, the open loop gain of the operational amplifier is . What is the…2026 Set 1 Q45The digital circuit shown has 3 inputs (, , and ). The simplified logical expression for…2026 Set 1 Q46The MOSFET switches shown in the circuit are ideal. [figure] Which of the following is the correct…2026 Set 1 Q61Consider the circuit shown. Assume that the diode () is ideal. Given …