GATE | Quiz for Sudo GATE 2021 | Question 33
An instruction is stored at location 300 with its address field at location 301. The address field has the value 400. A processor register R1 contains the number 200. Which of the following effective address is/are correct for addressing modes of the instruction?
Note – This question is multiple select questions (MSQ).
(A) Direct effective address = 400
(B) Register indirect effective address = 200
(C) PCâRelative effective address = 700
(D) Register indirect effective address = 600
Answer: (A) (B) (D)
Explanation: Effective address,
a. Direct = 400 b. Immediate = 301 c. Relative = 302 + 400 = 702 d. Reg. Indirect = 200 e. Indexed = 200 + 400 = 600
So, option (C) is false.
Quiz of this Question
Please comment below if you find anything wrong in the above post