MIPS
Microprocessor without Interlocked Pipeline Stages
Registers
number |
name |
description |
0 |
zero |
always zero |
1 |
at |
temporary |
2-3 |
v0-v1 |
return value from a function call |
4-7 |
a0-a3 |
first four parameters of a function call |
8-15 |
t0-t7 |
temporary variables need not to be preserved |
16-23 |
s0-s7 |
function variables, must be preserved |
24-25 |
t8-t9 |
two more temporary variables |
26-27 |
k0-k1 |
kernel use registers |
28 |
gp |
global pointer |
29 |
st |
stack pointer |
30 |
fp |
frame pointer |
31 |
ra |
return address register |
Instruction set
Instruction |
short name |
description |
slti r, s, imm |
Set on less than immediate (signed) |
If s is less than immediate, t is set to one. It gets zero otherwise. |
Links