Relative mode of addressing is most relevant to writing
2016
Relative mode of addressing is most relevant to writing
- A.
Co-routines
- B.
Position – independent code
- C.
Shareable code
- D.
Interrupt Handlers
Attempted by 334 students.
Show answer & explanation
Correct answer: B
Relative addressing calculates effective addresses by adding an offset to the current program counter (PC). This allows instructions to reference memory locations relative to their own position in code. Consequently, the code can be loaded at any memory address without modification, which is essential for Position Independent Code (PIC).
A video solution is available for this question — log in and enroll to watch it.