• retagged by
2,808 views
1 1 vote

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?

1 Answer

Best answer
7 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
Position:
Show:

Related questions

0 0 votes
3 3 answers
821
821 views
lea asked Jun 12, 2023
821 views
0 0 votes
1 1 answer
1.1k
1.1k views
Chaitanya Kale asked Feb 13, 2023
1,136 views
Consider 3-word long jump instruction designed with PC-relative addressing mode, stored in the memory with a starting address of (2000)$_{10}$. Address field of an instru...
1 1 vote
1 1 answer
1.4k
1.4k views
newbie asked Jan 7, 2019
1,372 views
If someone mentioned "index value" in indexed addressing mode then which value is it referring; the value of index register or the constant value?It should be value of in...
1 1 vote
1 1 answer
1.4k
1.4k views
Gurdeep Saini asked Jan 4, 2019
1,441 views
I know about indirect addressing mode , Index addressing modebut do not know about Indirect index addressing mode ?in one solution of a question they told that Indirect...