Addressing modes | ||||||||||||
MIPS has 5 ways of addressing data (see fig. 3.17) | ||||||||||||
1. immediate: data is in instruction itself | ||||||||||||
2. register: register number in instruction tells which register contains data | ||||||||||||
3. base/offset: offset value added to base register | ||||||||||||
4. PC-relative: offset added to PC | ||||||||||||
5. pseudodirect: offset from instruction merged with PC | ||||||||||||