Consider the following Assembly language program MVIA 30 H ACI 30 H XRA A POP…
2008
Consider the following Assembly language program
MVIA 30 H
ACI 30 H
XRA A
POP H
After the execution of the above program, the contents of the accumulator will be
- A.
30 H
- B.
60 H
- C.
00 H
- D.
contents of stack
Attempted by 25 students.
Show answer & explanation
Correct answer: C
1. MVI A, 30H: Loads immediate value 30H into the Accumulator (A = 30H). 2. ACI 30H: Adds immediate value 30H to Accumulator with Carry (A = 60H). 3. XRA A: Exclusive ORs Accumulator with itself, resulting in 00H (A = 00H). 4. POP H: Pops stack content into HL pair, does not affect Accumulator. The final content of the Accumulator is 00H.