Skip to main content

Module gpr

Module gpr 

Source
Expand description

MIPS general-purpose register indices, by their ABI names.

Lives here rather than beside any one caller so the numbering is stated once: a second private copy elsewhere is how $t3 and $t4 eventually swap in one of them. Only the names currently needed are defined — this is a shared vocabulary, not an exhaustive table for its own sake.

Constants§

A2
$a2 — argument 2.
A3
$a3 — argument 3.
AT
$at — assembler temporary.
RA
$ra — return address.
S3
$s3 — saved 3.
S4
$s4 — saved 4.
S5
$s5 — saved 5.
S6
$s6 — saved 6.
S7
$s7 — saved 7.
SP
$sp — stack pointer.
T0
$t0 — temporary 0.
T2
$t2 — temporary 2.
T3
$t3 — temporary 3.