Consider the following assembly language program for a hypothetical processor.…

GATE · 2003 · CS

Consider the following assembly language program for a hypothetical processor. A, B, and C are 8 bit registers. The meanings of various instructions are shown as comments.

image.png

Which of the following instructions when inserted at location X will ensure that the value of register A after program execution is the same as its initial value ?

  1. A.

    RRC A, #1

  2. B.

    NOP ; no operation

  3. C.

    LRC A, # 1 ; left rotate A through carry flag by one bit

  4. D.

    ADD A, # 1

Attempted by 9 students.

Sign up free to check your answer

Sign up free

Explore the full course: Isro

Loading lesson…