GATE Assistant

Past questions › Electronics and Communication Engineering › GATE 2021

GATE 2021 · EC · MCQ · 2 marks · Digital Circuits › Microprocessors

GATE 2021 Electronics and Communication Engineering question: The content of the registers are R 1 = 25H, R 2 = 30H and R 3 = 40H. The following…

The content of the registers are R = 25H, R = 30H and R = 40H. The following machine instructions are executed.

PUSH{R1}
PUSH{R2}
PUSH{R3}
POP{R1}
POP{R2}
POP{R3}

After execution, the content of registers R, R, R are

  1. (A)

    R = 40H, R = 30H, R = 25H

  2. (B)

    R = 25H, R = 30H, R = 40H

  3. (C)

    R = 30H, R = 40H, R = 25H

  4. (D)

    R = 40H, R = 25H, R = 30H

Show answer

Official answer: A

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion