Consider a three word machine instruction ADD A[R0], @ B The first operand…

GATE · 2005 · CS

Consider a three word machine instruction

ADD A[R0], @ B 

The first operand (destination) "A [R0]" uses indexed addressing mode with R0 as the index register. The second operand (source) "@ B" uses indirect addressing mode. A and B are memory addresses residing at the second and the third words, respectively. The first word of the instruction specifies the opcode, the index register designation and the source and destination addressing modes. During execution of ADD instruction, the two operands are added and stored in the destination (first operand). The number of memory cycles needed during the execution cycle of the instruction is

  1. A.

    3

  2. B.

    4

  3. C.

    5

  4. D.

    6

Attempted by 275 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…