The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+3 votes
111 views

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.

asked in CO and Architecture by Loyal (6.6k points) | 111 views

1 Answer

0 votes
because in base relative addressing mode you need to modify the base register.
answered by Active (3.2k points)

Related questions

+1 vote
1 answer
5
asked May 27, 2018 in CO and Architecture by Prateek Raghuvanshi Boss (10.1k points) | 176 views
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
49,808 questions
54,481 answers
188,249 comments
74,520 users