Difficulty: Easy
Correct Answer: index mode
Explanation:
Introduction / Context:
Addressing modes define how the CPU interprets operands within instructions. Understanding each mode is essential for assembly programming, compiler back ends, and performance tuning because it affects how memory addresses are formed and accessed.
Given Data / Assumptions:
Concept / Approach:
Indexed addressing forms the effective address as: EA = R + displacement, where R is a base or index register, and displacement is a constant embedded in the instruction. This is widely used for array access and structure field addressing. Other modes (immediate, absolute, indirect) do not match this computation pattern.
Step-by-Step Solution:
Verification / Alternative check:
Instruction set manuals (x86 base+disp, ARM base+imm, RISC-V base+imm) all implement indexed/base-plus-displacement addressing for efficient array and stack access, confirming the choice.
Why Other Options Are Wrong:
Common Pitfalls:
Confusing indexed with based or relative addressing; many architectures use interchangeable terms but the key property is EA = register + displacement supplied in the instruction.
Final Answer:
index mode
Discussion & Comments