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

Discussion

Which of the following addressing modes permits relocation without any change over in the code?

  • A.Indirect addressing
  • B.Indexed addressing
  • C.PC relative addressing
  • D.Base register addressing

Answer: B

Correct answer: Base register addressing

With base register addressing every address in the code is an offset from a register loaded with the program's actual location, so moving the program means loading a different value into that register and changing nothing in the code itself. Indexed addressing exists to step through arrays and does not relocate anything.

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

Post your comment

Please log in or register to post a comment.