Addressing Modes: by V.Saritha Assistant Professor (SR) SCSE, VIT University
Addressing Modes: by V.Saritha Assistant Professor (SR) SCSE, VIT University
by
V.Saritha
Assistant Professor (Sr)
SCSE, VIT University
300 600
500 700
V.Saritha, SCSE, VIT University
• Given the following memory values and a one-address machine with an
accumulator, what values do the following instructions load into the
accumulator?
– Word 20 contains 40
– Word 30 contains 50
– Word 40 contains 60
– Word 50 contains 70
• Load immediate 20
• Load direct 20
• Load indirect 20
• Load immediate 30
• Load direct 30
• Load indirect 30
• Let the address stored in the program counter be designated by the
symbol X1. The instruction stored in X1 has the address part (operand
reference) X2. The operand needed to execute the instruction is stored in
the memory word with address X3. An index register contains the value
X4. What is the relationship between these various quantities if the
addressing mode of the instruction is (a) direct (b) indirect (c) PC relative
(d) indexed? V.Saritha, SCSE, VIT University
• An address field in an instruction contains decimal value
14. where is the corresponding operand located for:
– Immediate addressing?
– Direct addressing?
– Indirect addressing?
– Register addressing?
– Register indirect addressing?
• A PC-relative mode branch instruction is stored in
memory at address 62010. The branch is made to
location 53010. The address field in the instruction is 10
bits long. What is the binary value in the instruction?