Machine-Instructions
August 1, 2024Transport-layer-Protocol
August 2, 2024Addressing-Modes
Question 24 |
Consider the following statements :
- (i) Auto increment addressing mode is useful in creating self-relocating code.
(ii) If auto addressing mode is included in an instruction set architecture, then
an additional ALU is required for effective address calculation.
(iii) In auto increment addressing mode, the amount of increment depends on
the size of the data item accessed.
Which of the above statements is/are true ?
Choose the correct answer from the code given below :
Code :
(iii) only | |
(ii) and (iii) only | |
(i) and (ii) only
| |
(ii) only |
Question 24 Explanation:
→ Auto increment addressing mode is useful in implementing arrays.
→ After determining the effective address, the value in the base register is incremented by the size of the data item that is to be accessed. For example, (A7)+ would access the content of the address register A7, then increase the address pointer of A7 by 1 (usually 1 word).
→ Within a loop, this addressing mode can be used to step through all the elements of an array or vector.
→ After determining the effective address, the value in the base register is incremented by the size of the data item that is to be accessed. For example, (A7)+ would access the content of the address register A7, then increase the address pointer of A7 by 1 (usually 1 word).
→ Within a loop, this addressing mode can be used to step through all the elements of an array or vector.
Correct Answer: A
Question 24 Explanation:
→ Auto increment addressing mode is useful in implementing arrays.
→ After determining the effective address, the value in the base register is incremented by the size of the data item that is to be accessed. For example, (A7)+ would access the content of the address register A7, then increase the address pointer of A7 by 1 (usually 1 word).
→ Within a loop, this addressing mode can be used to step through all the elements of an array or vector.
→ After determining the effective address, the value in the base register is incremented by the size of the data item that is to be accessed. For example, (A7)+ would access the content of the address register A7, then increase the address pointer of A7 by 1 (usually 1 word).
→ Within a loop, this addressing mode can be used to step through all the elements of an array or vector.
Subscribe
Login
0 Comments