426 views
3 votes
3 votes

I have a doubt PC Relative addressing modes permits relocation without any change whatsoever in the code,but why not Base register addressing as both addressing mode are similar? Plz can anybody explain?

According to this https://cs.stackexchange.com/questions/48730/which-addressing-modes-permits-relocation-without-any-change-whatsoever-in-the-c

Base addressing mode also allows relocation without any change in the code whatsoever

But according to https://gateoverflow.in/1656/gate1998_1-19

here PC Relative is correct answer!

or is it the case that Pc relative mode make more sense then Base addressing mode.

1 Answer

Related questions

0 votes
0 votes
2 answers
1
lea asked Jun 12, 2023
319 views