4,601 views
6 6 votes
A two- word instruction is stored in a location A. The operand part of instruction holds B. If the addressing mode is relative , the operand is available in location :

A. A+B+2

B.A+B+1

C.B+1

D.A+B

 

Explain with diagram.

1 Answer

Best answer
2 2 votes
Since the addressing mode is relative therefore EA=A+PC where A is the address of current instruction being executed therefore during  execution of instruction A the pc contains A+2 as it is a 2 word instruction as soon as it gets location B then operand will available at A+B+2
• selected by
Position:
Show:

Related questions

0 0 votes
1 1 answer
1.1k
1.1k views
Chaitanya Kale asked Feb 13, 2023
1,122 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...
7 7 votes
1 answers 1 answer
6.7k
6.7k views
Kriss Singh asked Sep 23, 2014
6,683 views
What is the intial pc value meaning 530=Pc + value what should be the pc value 631 or 632 or 633 basically the instruction length is not give so how can i determine the a...
0 0 votes
3 3 answers
807
807 views
lea asked Jun 12, 2023
807 views
1 1 vote
1 1 answer
1.4k
1.4k views
newbie asked Jan 7, 2019
1,359 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...