Computer Sciences > GATE 2026 SET-1 > Instruction Set Architecture
Consider a processor 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 ?
Note: X, Y, and Z are memory operands. R0, R1, and R2 are registers.
A
Load R0, x
Load R1, y
ADD R2, R0, R1
Store Z, R2
B
Load R0, x
ADD Z, R0, y
C
ADD R0, x, y
Store Z, R0
D
ADD Z, x, y

Correct : a

The correct answer is Option A.
In a load-store architecture, arithmetic and logic instructions can only operate on register operands — they cannot directly access memory. Memory is accessed exclusively through Load (memory → register) and Store (register → memory) instructions. This is the fundamental characteristic of RISC-style processors.
To compute z = x + y where x, y, z are memory operands, the correct sequence is:
Load R0, x - bring x from memory into register R0
Load R1, y - bring y from memory into register R1
ADD R2, R0, R1 - add R0 and R1, store result in R2 (first operand R2 is the destination)
Store Z, R2 - write result from R2 back to memory location z
This is exactly Option A and it correctly follows all load-store rules.
Option B - ADD Z, R0, y: uses memory operand y directly in ADD. Not allowed in load-store ISA.
Option C - ADD R0, x, y: uses two memory operands in ADD. Not allowed.
Option D - ADD Z, x, y: uses memory as both operands and destination in ADD. Not allowed.
The rule is simple - in load-store ISA, ADD never touches memory. Load and Store are the only instructions that do.

Similar Questions

A processor with 16 general purpose registers uses a 32-bit instruction format. The instruction format consists of an opcode field, an addressing mode field, tw...
#939 Fill in the Blanks
A processor has 64 general-purpose registers and 50 distinct instruction types. An instruction is encoded in 32-bits. What is the maximum number of bits that ca...
#1380 MCQ
Which of the following is/are part of an Instruction Set Architecture of a processor?
#1436 MCQ

Related Topics

load store architecture GATE 2026 GATE CS 2026 Set-1 Q20 z=x+y instruction sequence RISC load store ISA arithmetic register only GATE Load ADD Store sequence computer organization GATE 2026 instruction format destination operand GATE computer science ISA

Unique Visitor Count

Total Unique Visitors

Loading......