The memory locations 1000, 1001 and 1020 have data values 18, 1 and 16…

GATE · 2006 · IT

The memory locations 1000, 1001 and 1020 have data values 18, 1 and 16 respectively before the following program is executed.

MOVI   Rs, 1          ; Move immediate
LOAD   Rd, 1000(Rs)   ; Load from memory
ADDI   Rd, 1000       ; Add immediate
STOREI 0(Rd), 20      ; Store immediate

Which of the statements below is TRUE after the program is executed?

  1. A.

    Memory location 1000 has value 20

  2. B.

    Memory location 1020 has value 20

  3. C.

    Memory location 1001 has value 20

  4. D.

    Memory location 1021 has value 20

Attempted by 348 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…