retagged by
4,368 views
3 votes
3 votes
A processor register R10 contains the 210 which is also used as index register.Evaluate the effective of the operand if the addressing mode of the instruction is  i)direct  ii)register direct iii) register indirect iv) relative  v)indexed
retagged by

1 Answer

Best answer
0 votes
0 votes

Let us answer for each addressing mode one by one :

a) Direct addressing mode :

In this case , the address field of the instruction will give E.A ..So E.A.  =  10

b) Register direct mode :

In this the name of the register will itself the effective address which gives the name of register which is to be found from the register file..Hence in this case E.A.   =   R10(name of the register)

c) Register indirect mode :

In this case the content of the register will give us the effective address where the actual data is present in the memory..So the effective address in this case = Content of register R10 =  210

d) Indexed mode :

Here the effective address is calculated by adding the content of the address field of the instruction which u can say the base address to the content of the index register which works as an offset..

So effective address here = Base address + Index register value

                                     =  Address field value of instruction + Index register (which is also given as R10) value

                                     = 10 + 210

                                     = 220

e) Relative addressing :

For this the knowledge of PC or base register is necessary hence cannot conclude here.

selected by

Related questions

0 votes
0 votes
0 answers
1
fru asked Apr 22, 2022
1,474 views
a microprocssor has a data bus with 64 lins and an address bus with 32 lines the maximum number of bits that can be stored in the memory is
0 votes
0 votes
1 answer
2
viral8702 asked Apr 29, 2022
449 views
A frame buffer array is addressed in row major order for a monitor with pixel locations starting from (0,0) and ending with (100,100). What is address of the pixel(6,10)?...
6 votes
6 votes
0 answers
3
V pandey asked Oct 8, 2022
3,018 views
Consider a multi-dimensional array A [90][30]40] with base address start at 1000, calculate the address of A[10][20][3] in row major order and column major order. Assume ...