Addressing Modes (cont)
Addressing modes in MIPS
Format | | Address computation |
(register) | |
address = contents of register |
k | |
address = k |
k(register) | |
address = k + contents of register |
symbol | |
address = &symbol = address of symbol |
symbol ± k | |
address = &symbol ± k |
symbol ± k(register) | |
address = &symbol ± (k + contents of register) |
where k is a literal constant value (e.g. 4 or 0x10000000 )
|