Which of the following addressing mode is best suited to access elements of an array of contiguous memory locations ?

Which of the following addressing mode is best suited to access elements of an array of contiguous memory locations ? Correct Answer Indexed addressing mode

The correct answer is option 1

Key Points

Indexed addressing mode is best suited to access the elements of an array of contiguous memory locations.

Here, the effective address is calculated as the sum of the contents of Index Register SI or DI and the displacement.

Accessing registers is much faster than accessing memory locations.

So, when an operation is performed on elements of an array, the execution is much faster.

Additional Information

Base Register addressing mode: In this mode effective address is calculated by adding base register value to address field value.

Relative Address mode: In this mode, effective address is calculated by adding accumulator and value in address part of the instruction.

Displacement mode: In this mode, the address of the operand is formed by adding the displacement to the contents of the specified register in the instruction.

Related Questions

A teacher asked the class to subtract 5 from 75.70% of the class said: 25. Their work was shown as: \(\begin{array}{*{20}{c}} {\begin{array}{*{20}{c}} 7&5 \end{array}}\\ {\underline {\begin{array}{*{20}{c}}\ { - 5} \ \ \ &{} \end{array}} }\\ {\underline {\begin{array}{*{20}{c}} 2&5 \end{array}} } \end{array}\) Which of the following describes the most appropriate remedial action that the teacher should take to clarify this misconception?