-
The following program starts at location 0100 H
LXI SP, 00FF
LXI H, 0701H
MVI A, 20H
SUB M
The content of the accumulator when the program counter reaches 0109 H is—
-
- 20 H
- 02 H
- 00 H
- FF H
Correct Option: A
Program Counter position | |
---|---|
LXI SP, 00FFH | 0100 H |
LXI H, 0701 H | 0103 H |
MVI A, 20H | 0106 |
SUB M | 0108 |
Let us consider that on 0701 H address the data is 00H
Then SUB M = A – M [0701]
= 20 – 00 = 20 H