How an instruction with pc relative addressing mode gets its operand?
Answers
Answered by
0
The way it was explained to me many many years ago:
PC Relative addressing can be compared to instructions on a treasure map (the treasure is 10 paces north of your current location). Essentially, the byte/word/whatever of interest is stored at some offset from the current instruction being executed. The data is is referenced in the instruction using the offset from PC.
This will allow the data to be accessed even if the code/data is relocated to another area of memory.
2k Views ·
PC Relative addressing can be compared to instructions on a treasure map (the treasure is 10 paces north of your current location). Essentially, the byte/word/whatever of interest is stored at some offset from the current instruction being executed. The data is is referenced in the instruction using the offset from PC.
This will allow the data to be accessed even if the code/data is relocated to another area of memory.
2k Views ·
Similar questions