Addressing Modes questions

Q55

GATE CS 2021 CS-1Instruction Set and AddressingNAT2 marks
Consider the following instruction sequence where registers R1, R2 and R3 are general purpose and MEMORY[X] denotes the content at the memory location X.
InstructionSemanticsInstruction Size (bytes)
MOV R1, (5000)R1 ← MEMORY[5000]4
MOV R2, (R3)R2 ← MEMORY[R3]4
ADD R2, R1R2 ← R1+R22
MOV (R3), R2MEMORY[R3] ← R24
INC R3R3 ← R3+12
DEC R1R1 ← R1-12
BNZ 1004Branch if not zero to the given absolute address2
HALTStop1
Assume that the content of the memory location 5000 is 10, and the content of the register R3 is 3000. The content of each of the memory locations from 3000 to 3010 is 50. The instruction sequence starts from the memory location 1000. All the numbers are in decimal format. Assume that the memory is byte addressable.
After the execution of the program, the content of memory location 3010 is ______.
Show answer without attempting

Answer: 50

0/10 correct0 marks

Related topics in Instruction Set and Addressing