Question 42Asked in UGC NET Computer Science, June 2016 (Paper II & III, Selected Questions)

The .......... addressing mode is similar to register indirect addressing mode, except that an offset is added to the contents of the register. The offset…

The .......... addressing mode is similar to register indirect addressing mode, except that an offset is added to the contents of the register. The offset and register are specified in the instruction.
  1. ABase indexed
  2. BBase indexed plus displacement
  3. CIndexed
  4. DDisplacement
Show answerHide answer

Correct answer: (D) Displacement

Explanation

The displacement addressing mode is similar to register indirect addressing mode, except that an offset is added to the contents of the register. The offset and register are specified in the instruction. Based Indexed Addressing: The operand’s offset is sum of the content of a base register BX or BP and an index register SI or DI. Based Indexed plus displacement addressing mode: In this mode of addressing the operand’s offset is given by offset=[BX or BP]+[SI or DI]+8 bit or 16 bit displacement. Indexed addressing mode: The operand’s offset is the sum of the content of an index register SI or DI and an 8 bit or 16 bit displacement. So, option (D) is correct.

From UGC NET Computer Science PYQ, June 2016 (Paper II & III, Selected Questions)

This is question 42 of UGC NET Computer Science PYQ, June 2016 (Paper II & III, Selected Questions). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.