mthi

Operands

$reg

Move to HI : Copies $t1 into the special HI register, overwriting any prior multiply or divide result stored there.

Variants

  • Move to HI : Copies $t1 into the special HI register, overwriting any prior multiply or divide result stored there. mthi $t1
# Set the implicit HI register explicitly, then read it back. Inspect $t2: 42.
li $t0, 42
mthi $t0
mfhi $t2