Skip to main content

GATE CSE 2026CO & Architecture › Machine Instructions & Addressing ModesVerified

GATE CSE 2026 PYQ: Consider a processor P \text{P} P whose instruction set architecture is the load-store architecture. The…

Consider a processor P\text{P} whose instruction set architecture is the load-store architecture. The instruction format is such that the first operand of any instruction is the destination operand.

Which one of the following sequences of instructions corresponds to the high-level language statement Z=X+Y\mathrm{Z}=\mathrm{X}+\mathrm{Y} ?

Note: X, Y, and Z are memory operands. R0, R1, and R2 are registers.

  1. A
    ADD Z, X, Y
  2. B
    LOAD R0, X ADD Z, R0, Y
  3. C
    ADD R0, X, Y STORE Z, R0
  4. D
    LOAD R0, X LOAD R1, Y ADD R2, R0, R1 STORE Z, R2
    Correct answer

Answer

(D) LOAD R 0 0 0 , X LOAD R 1 1 1 , Y ADD R 2 2 2 , R 0 0 0 , R 1 1 1 STORE Z, R 2 2 2

Approach

Use the defining property of a load-store ISA: arithmetic instructions operate only on register operands, and memory is accessed only by LOAD/STORE instructions. Then check each option against the first-operand-destination convention.

Only option D respects the load-store ISA requirement that arithmetic instructions use register operands, while memory is accessed via LOAD and STORE. The sequence also follows the stated first-operand-destination format: ADD R2, R0, R1 computes R2 = R0 + R1, and STORE Z, R2 writes R2 into Z.

Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.