The most appropriate matching for the following pairs is
View worked solution
Answer: C
We can determine the correct matching by analyzing the primary use cases of each addressing mode:
- X. Indirect addressing → 2. Pointers: In indirect addressing, the instruction specifies a register or memory location that contains the address of the operand (rather than the operand itself). This is the exact definition and mechanism of a pointer in high-level programming languages.
-
Y. Immediate addressing → 3. Constants:
In immediate addressing, the actual operand value is present directly within the instruction (e.g.,
ADD R1, #5). This is used to load or perform operations with fixed constants. - Z. Auto decrement addressing → 1. Loops: Auto-decrement (and auto-increment) addressing modes automatically update the index register or pointer after/before each access. This is highly useful for stepping through arrays or managing counters inside loops.
Thus, the correct matching is: This corresponds to Option C.
Free practice · Your answers on this page are not saved.
