...
Machine-Instructions
August 1, 2024
Transport-layer-Protocol
August 2, 2024
Machine-Instructions
August 1, 2024
Transport-layer-Protocol
August 2, 2024

Addressing-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 :

A
(iii) only
B
(ii) and (iii) only
C
(i) and (ii) only
D
(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.

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.

0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!