Official answer: D) LOAD R0, X LOAD R1, Y ADD R2, R0, R1 STORE Z, R2
Instruction Set and Addressing ModesIn a load-store architecture (typical of RISC systems):
ALU operations (such as ADD) can only operate on operands stored in registers, not directly on memory locations.
Access to memory is strictly restricted to LOAD and STORE instructions.
The first operand is the destination operand.
To compute the high-level statement Z=X+Y where X,Y,Z reside in memory:
Load X into a register: LOAD R0, X
Load Y into a register: LOAD R1, Y
Perform the addition using registers: ADD R2, R0, R1 (storing the sum in R2)
Store the result back into memory location Z: STORE Z, R2
Therefore, option (D) correctly represents the required sequence.
Options (A), (B), and (C) are invalid because they attempt to use memory operands directly in the ADD arithmetic instruction, which violates the principles of a load-store architecture.