A 4-byte instruction is stored in memory at address 1000. The address field of…
A 4-byte instruction is stored in memory at address 1000. The address field of the instruction is at location 1002. The operand used during the execution of the instruction is stored at location X. Choose the correct expression to find X if PC relative addressing mode is used.
(For ex: M [10] represents accessing the value at memory location 10).
- A.
X = 1000 + M[1002]
- B.
X = 1002 + M[1004]
- C.
X = 1004 + M[1002]
- D.
X = 1000 + M[1004]
Attempted by 20 students.
Sign up free to check your answer
Sign up freeLoading lesson…