10,704 views
1 votes
1 votes

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)

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
2
dragonball asked Dec 17, 2017
3,721 views
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. ...
6 votes
6 votes
1 answer
3
KISHALAY DAS asked Nov 5, 2016
3,311 views