in CO and Architecture
10,704 views
1 vote
1 vote

A two word instruction is stored in memory at an address designated by symbol W. The address field of the instruction (stored at W+1) is designated by symbol Y. The operand used during the execution of the instruction is stored at an address symbolized by the Z. Which of the following is/are correct if the addressing mode used is the relative addressing mode?

  1.   Z = M [Y] + (Y + 1)
  2.   Z = (W + 2) + M [Y]
  3.   Z = M[M[Y]] + Y
  4.   Both (A) and (B)
in CO and Architecture
10.7k views

4 Comments

which test series question is this?

I think answer should be 1.
0
0
0
0
0
0
2
0
0

1 Answer

2 votes
2 votes
As the Relative addressing mode is used,

Memory location of operand = PC value + Address part of instruction.

PC value = (Y+1)  or (W+2)

API=M[Y] or M[W+1]

So, the answer is option D.

Related questions

6 votes
6 votes
1 answer
3
KISHALAY DAS asked in CO and Architecture Nov 5, 2016
3,321 views
KISHALAY DAS asked in CO and Architecture Nov 5, 2016
3.3k views