Difficulty: Easy
Correct Answer: Auto increment
Explanation:
Introduction / Context:
Addressing modes extend instruction flexibility and can accelerate common patterns like iterating through arrays or stacks. Auto-increment addressing is particularly useful for linear scans of buffers because it eliminates explicit instructions to update the pointer after each access.
Given Data / Assumptions:
Concept / Approach:
In auto-increment mode, the effective address is taken from a register (like Rn). After the read or write, the CPU increments Rn automatically to the next element, reducing instruction count and improving pipeline efficiency for sequential access patterns.
Step-by-Step Solution:
Verification / Alternative check:
Assembly listings on architectures supporting this mode (for example, some ARM or DSP variants) show that pointer updates are implicit, saving an extra add instruction per iteration.
Why Other Options Are Wrong:
Common Pitfalls:
Ignoring element size when reasoning about increment amounts, which can yield misaligned accesses or skipped elements.
Final Answer:
Auto increment
Discussion & Comments