in CO and Architecture
19,531 views
3 votes
3 votes

Plz discuss every part with detailed solution with diagram .

in CO and Architecture
19.5k views

3 Comments

edited by
question is incomplete...

In case of direct addressing mode, an Effective address is directly given in an in the instruction itself. here in this question according to my understanding, the effective address is 301 because 400(actual data) is present at this address

So a should be matched with 5...

In case of immediate addressing mode, directly data will be given in instruction itself.

So b should be matched with 3...
0
0
what is the answer?
0
0

Balaji Jegan can you explain in detail?

0
0

1 Answer

7 votes
7 votes

In the Direct Addressing Mode, the address part of the instruction is equal to the effective address. Here, the operand resides in the memory. Register address is given directly by the address field of the instruction. Hence, Effective Address = 400.

In the Immediate Addressing Mode, when the instruction is assembled, the operand comes immediately after the opcode and as such, data is a part of the instruction itself. Hence, Effective Address = 301.

In the Relative Addressing Mode, the Program Counter (PC) is the implicitly referenced register. So, the effective address is generated by adding the next instruction address to the the address field. Hence, Effective Address = 302 + 400 = 702.

In the Register Indirect Addressing Mode, the operand (which is the contents of a register) is specified by giving the name of the register (in this case, the processor register) in the instruction. Hence, Effective Address = 200.

In the Indexed Register Addressing Mode, the effective address is the sum of the contents of 2 registers. Since, R1 here acts as the index register and the address field contains the value 400, hence Effective Address = 200 + 400 = 600.

3 Comments

i think it is wrong
0
0
immediate mode means the operand is directly present which doesn't need any memory reference so it is 400
0
0
As in the question,already mention that address field is at location 301(in immediate mode, value is present in address field of instruction itself), hence EA will be 301 not 400. I hope you will be able to understand....
0
0

Related questions