electronist
New Member
Got this from a GATE paper of 2005
Im confused. any clue?
The following program starts at location 0100H
LXI SP, 00FF
LXI H, 0701
MVI A, 20H
SUB M
The content od accumulator when the program counter reaches 0109H is
(A) 20H (B)02H (C)00H (D)FFH
If in addition following code exists from 0109H onwards
ORI 40H
ADD M
what will be the result in the accumulator after the last instruction is executed?
(A)40H (B) 20H (C) 60H (D) 42H
Im confused. any clue?
The following program starts at location 0100H
LXI SP, 00FF
LXI H, 0701
MVI A, 20H
SUB M
The content od accumulator when the program counter reaches 0109H is
(A) 20H (B)02H (C)00H (D)FFH
If in addition following code exists from 0109H onwards
ORI 40H
ADD M
what will be the result in the accumulator after the last instruction is executed?
(A)40H (B) 20H (C) 60H (D) 42H