Which of the following addressing modes permits relocation without any change over in the code?
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.
Please log in or register to report this question.