Consider a processor 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 ?
Note: X, Y, and Z are memory operands. R0, R1, and R2 are registers.
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…
- AADD Z, X, Y
- BLOAD R0, X ADD Z, R0, Y
- CADD R0, X, Y STORE Z, R0
- DLOAD R0, X LOAD R1, Y ADD R2, R0, R1 STORE Z, R2Correct 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.