Practice over 1000+ GATE-level questions from this topic!
Designed to match the latest GATE pattern with topic-wise precision, difficulty tagging, and detailed solutions.
An intel 8085 processor is executing the program given below.
MVI A, 10H
MVI B, 10H
BACK: NOP
ADD B
RLC
JNC BACK
HLT
The number of times that the operation NOP will be executed is equal to
1
2
3
4
The instruction NOP will be executed as many number of times as the loop is executed. Upon execution once,
A = A + B = 20H (0010 0000)
RLC; A = 40H (0100 0000), CY = 0
Second execution,
A = A + B = 50H (0101 0000)
RLC; A = A0H (1010 0000), CY = 0
Third execution,
A = A + B = B0H (1011 0000)
RLC; A = 61H (0110 0001), CY = 1
Since, the CY flag is now set the loop terminates and hence NOP instruction is executed thrice.