retagged by
958 views

4 Answers

Best answer
3 votes
3 votes
Answer of this question should be (C) Base Register Addressing Mode
selected by
0 votes
0 votes
CAN U COMMENT ABOUT RELATIVE ONE . WHY IT NOT B ?
0 votes
0 votes

Displacement Mode

Similar to index mode, except instead of an index register a base register will be used. Base register contains a pointer to a memory location. An integer (constant) is also referred to as a displacement. The address of the operand is obtained by adding the contents of the base register plus the constant. The difference between index mode and displacement mode is in the number of bits used to represent the constant. When the constant is represented a number of bits to access the memory, then we have index mode. Index mode is more appropriate for array accessing; displacement mode is more appropriate for structure (records) accessing.

Source: http://www.cs.iit.edu/~cs561/cs350/addressing/addsclm.html


I have bolded up the important text.

As per that, displacement mode is when you use a base register instead of an index register.

=> In Indexed mode, the index (ie the shift) is stored in the register, while base is constant.

But in Displacement mode, the index (ie the shift) is a constant, while the base is present in the register.

Something like this:

The upper one is Indexed mode (Register acts as index) the lower one is Base Register mode (Register acts as base address) — also called the displacement mode.

Answer:

Related questions

0 votes
0 votes
1 answer
1
Bikram asked Nov 25, 2016
224 views
What is the addressing mode of the below mentioned instruction?$’\text{MUL } \ R1, \ \#2’$ Indirect Indexed Immediate Direct
1 votes
1 votes
3 answers
3