Name | Register Number | Usage |
---|---|---|
$zero | 0 | the constant value 0 |
$v0-$v1 | 2-3 | values for results and expression evaluation |
$a0-$a3 | 4-7 | arguments |
$t0-$t7 | 8-15 | temporaries |
$s0-$s7 | 16-23 | saved |
$t8-$t9 | 24-25 | more temporaries |
$gp | 28 | global pointer |
$sp | 29 | stack pointer |
$fp | 30 | frame pointer |
$ra | 31 | return address |
指令主要分成三種格式:
op | rs | rt | rd | shamt | funct |
---|---|---|---|---|---|
6 bits | 5 bits | 5 bits | 5 bits | 5 bits | 6 bits |
op | rs | rt | constant or address |
---|---|---|---|
6 bits | 5 bits | 5 bits | 16 bits |
op | address |
---|---|
6 bits | 26 bits |
更多指令可在資料中查詢。