-
Which of the following is/are true of the auto-increment addressing mode?
1. It is used in creating self-relocating code.
2. If it is included in an Instruction Set Architecture, then an additional ALU is required for effective address calculation.
3. The amount of increment depends on the size of the data item accessed.
-
- 1 only
- 2 only
- 3 only
- 2 and 3
- 1 only
Correct Option: C
For incrementing the data, the auto-increment addressing mode is used which purely depends on the size of the data. For example:
Regs [R1] ← Regs [R1] + Mem [Regs [R2]
Regs [R2] ← Regs [R2] + d