2024/2025
Constant zero - Register File - ANSWERS $zero
0
Temporaries - Register File - ANSWERS $t8-$t9
24-25
Multiply (Small Numbers)- Instruction - ANSWERS mul
mul $s0, $t1, $t2
Exclusive OR - ANSWERS xor
One or the other, but not both
AND - ANSWERS and
Load Immediate - ANSWERS li
li, $t0, 7
for constant values
Global pointer (Preserved) - Register File - ANSWERS $gp
28
Load Word - Instruction - ANSWERS lw (for integers)
lw $t2, varName
, NOR - Instruction - ANSWERS nor
take or, then flip
Saved (Preserved) - Register File - ANSWERS $s0-$s7
16-23
Values that need to be saved (not. modified)
Temporaries - Register File - ANSWERS $t0-$t7
8-15
OR - ANSWERS or
Add - Instruction - ANSWERS add
Needs two registers as arguments
Stack pointer (Preserved) - Register File - ANSWERS $sp
29
Frame pointer (Preserved) - Register File - ANSWERS $fp
30
Load Address - ANSWERS la (for strings and arrays)
Move from LO - Instruction - ANSWERS mflo
Return Values (Function Result) - Register File - ANSWERS $v0-$v1
2-3