Professional Documents
Culture Documents
22BCY10191
the effective address if the addressing mode of the instruction is (i) 400(ii) 301 (iii) 701
Ans1 :- (iv)200 (v) 600
Explanation:
Given: An instruction is stored at location 300 with its address field at location 301. The
address field at location 301. The address field has the value 400. A processor register r1
contains the number 200.
To find: Evaluate the effective address if the addressing mode of the instruction is (i)
direct (ii) immediate (iii) relative (iv)register indirect (v) index with r1 as the index register
Solution:
Location _ Contents
Direct addressing means that the address field contains the address of memory location
the instruction is supposed to work with (where an operand "resides").
Immediate addressing means that the address field contains the operand itself.
Relative addressing means that the address field contains offset to be added to the program
counter to address a memory location of the operand.
Register indirect addressing means that the address of an operand is in the register. The
address field in this case contains just another operand.