In MIPS, it has its own register convention. Yeah because it has to convert the assembly language into machine language. So, the image below show you the MIPS Register Convention :
Register Operands
MIPS has a 32 x 32-bit register file :
- Use for frequently accessed data.
- Numbered O to 31.
- 32-bit data are called a "word".
Assembler names:
- $tO, $t1....$t9 are for temporary values.
- $s0, $s1,...$s7 are for saved variable.
Memory Operands
Memory operands is a main memory used for composite data such as arrays, structures and dynamic data.
It is also function to apply arithmetic operations. For example, to load values from memory into registers. Memory is byte addressed which been identified by 8-bit byte.
No comments:
Post a Comment