Consider the following assembly language program for a hypothetical processor.…
PYQ GATE 2003
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.

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 ?
- A.
RRC A, #1
- B.
NOP ; no operation
- C.
LRC A, # 1 ; left rotate A through carry flag by one bit
- D.
ADD A, # 1
Attempted by 9 students.
Sign up free to check your answer
Sign up freeLoading lesson…

