Abstract

What is the purpose of register zero?
We can use it to assign the value of one variable to another, like
add $s0, $s1, $zero, which is equivalent to$s0 = $s1.
Important
$v0and$v1are used by functions to return values.
$a0,$a1,$a2, and$a3are used to pass arguments to functions.
$atis used by the assembler to store temporary values for pseudo-instructions.
$t0through$t9are not preserved across function calls. If a function calls another function, the values in$t0through$t9may be overwritten when the called function returns. We can push the values in$t0through$t9onto the stack before calling the function and restore the values back to the registers when the called function returns.
$s0through$s7are preserved across functions calls!
$v0is same as$2!
