retagged by
1,688 views
0 votes
0 votes

A two word instruction.is stored at location W. Address field of the instruction ( stored at W+1) holds value Y. If program counter value is PC, What is the effective address of this instruction?

retagged by

1 Answer

2 votes
2 votes

for pc-relative mode effective address = program counter + address field value

program counter = w+2////as 2 word instruction so w, w+1 will be acquired by instruction

address field value = Y

EA= (w+2) + Y

MODE  can be any...pc-relative,base reg,direct, inderct,indexed....etc ////formula for calculating EA changes with mode

                             

W MODE
W+1      Y
W+2  
W+3  
   
    EA
   
edited by

Related questions

0 votes
0 votes
1 answer
1
Balaji Jegan asked Oct 16, 2018
979 views
Choose the correct formula for Effective Address calculationBase + (Size*Scale) +Displacement)(Base + Size)*Scale +DisplacementBase + Size*(Scale +Displacement)(Base + Si...
3 votes
3 votes
1 answer
2
dragonball asked Jan 2, 2018
19,528 views
Plz discuss every part with detailed solution with diagram .
3 votes
3 votes
2 answers
3
Isha Karn asked Jan 23, 2015
4,497 views