Addressing Modes
how do we specify the operand we want?
#25
The operand (25) is part of the instruction
R3
(sometimes written $3)
The operand is the contents of register 3
M[R3]
Use contents of R3 as address into memory; find
the operand there. This is a special case of...
M[R3 + 160]
Add the displacement (160) to contents of R3,
look in that memory location for the operand
- If register is PC, this is “PC-relative addressing”