retagged by
1,929 views
1 votes
1 votes

S1 : Relative mode is the addressing mode which can be used to write code in which reallocation is done at run time.
S2 : Indirect addressing through registers can be used to access global variables.

Which of the following option is correct?

retagged by

1 Answer

Best answer
7 votes
7 votes

Statement 1 is true since PC relative instructions are used to perform intrasegment transfer of control instructions whereas Base register addressing mode which is used in 8086 architecture is used to perform intersegment transfer of control and hence relocation of code more specificially between the segments..

Statement 2 is not true necessarily because a pointer may or may not be global variable as their working is different although they can be used to implement the same thing..

And specifically we use indirect addressing mode is used to implement pointers concept.So statement 2 should be false from this perspective.For more clarity :

http://stackoverflow.com/questions/1892198/whats-the-difference-between-pointers-and-global-variables-in-c

selected by

Related questions

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