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

  1. A.

    30 H

  2. B.

    60 H

  3. C.

    00 H

  4. 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.

Explore the full course: Isro