List the MIPS registers and their purpose.
Register Names and Purpose
Name Register number Usage
$zero 0 the constant value 0
$v0-$v1 2-3 values for results
$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
Comments
Leave a comment