Register convention
Name 	Number	Usage
$zero	$0	Constant 0
$at	$1	Reserved for assembler
$v0	$2	Expression evaluation and results of function
$v1	$3	Expression evaluation and results of function
$a0	$4	Argument 1
$a1	$5	Argument 2
$a2	$6	Argument 3
$a3	$7	Argument 4
$t0	$8	Temporary (not preserved across calls)
$t1	$9	Temporary (not preserved across calls)
$t2	$10	Temporary (not preserved across calls)
$t3	$11	Temporary (not preserved across calls)
$t4	$12	Temporary (not preserved across calls)
$t5	$13	Temporary (not preserved across calls)
$t6	$14	Temporary (not preserved across calls)
$t7	$15	Temporary (not preserved across calls)
$s0	$16	Saved temporary (preserved across calls)
$s1	$17	Saved temporary (preserved across calls)
$s2	$18	Saved temporary (preserved across calls)
$s3	$19	Saved temporary (preserved across calls)
$s4	$20	Saved temporary (preserved across calls)
$s5	$21	Saved temporary (preserved across calls)
$s6	$22	Saved temporary (preserved across calls)
$s7	$23	Saved temporary (preserved across calls)
$t8	$24	Temporary (not preserved across calls)
$t9	$25	Temporary (not preserved across calls)
$k0	$26	Reserved for OS kernel
$k1	$27	Reserved for OS kernel
$gp	$28	Pointer to global area
$sp	$29	Stack pointer
$fp	$30	Frame pointer
$ra	$31	Return address (used by function call)
Last modified 2005-03-18