Home » Microprocessor » Advanced Microprocessors » Question

Advanced Microprocessors

  1. 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—
    1. 20 H
    2. 02 H
    3. 00 H
    4. FF H
Correct Option: A

Program Counter position
LXI SP, 00FFH0100 H
LXI H, 0701 H0103 H
MVI A, 20H 0106
SUB M0108

Let us consider that on 0701 H address the data is 00H
Then SUB M = A – M [0701]
= 20 – 00 = 20 H



Your comments will be displayed only after manual approval.