Machine-translated by Google. Questions are authored in English.
Top

Discussion

Which one of the following is not a most common use of displacement addressing ?

  • A.Relative addressing
  • B.Base-register addressing
  • C.Indexing
  • D.Register-indirect addressing

Answer: D

The one that is not a common use of displacement addressing is Register-indirect addressing.

Displacement addressing computes the effective address as \(EA = A + (R)\): an address field plus the contents of a register. Stallings lists its three most common uses as relative addressing (R is the program counter), base-register addressing (R holds a base address) and indexing (A is a base, R holds an index).

Register-indirect addressing uses only the register's contents, \(EA = (R)\), with no displacement, so it is a separate mode, not an application of displacement addressing.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.