mthi
Move to HI
Copies $t1 into the special HI register, overwriting any prior multiply or divide result stored there.
Forms
mthi
Operands
$t1- Any general-purpose register,
$0to$31, using its numeric or named spelling, such as$8or$t0($zerois$0;$rais$31).
# Set the implicit HI register explicitly, then read it back. Inspect $t2: 42.
li $t0, 42
mthi $t0
mfhi $t2