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

Discussion

In which addressing mode, the effective address of the operand is generated by adding a constant value to the contents of register ?

  • A.Absolute
  • B.Indirect
  • C.Immediate
  • D.Index

Answer: D

In indexed addressing the effective address is formed by adding a constant (the displacement or base address in the instruction) to the contents of an index register. This is the Index mode, and it is useful for arrays.

In absolute (direct) addressing the address is given in the instruction itself, indirect addressing uses the address of a location that holds the address of the operand, and immediate addressing places the operand itself in the instruction. None of these adds a constant to a register to find the address.

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

Post your comment

Please log in or register to post a comment.