msubu

Operands

$reg, $reg

Multiply-subtract unsigned : Multiplies $t1 by $t2 treating both as unsigned 32-bit integers, then subtracts the 64-bit product from HI:LO. Use 'mfhi'/'mflo' to read the result.

Variants

  • Multiply-subtract unsigned : Multiplies $t1 by $t2 treating both as unsigned 32-bit integers, then subtracts the 64-bit product from HI:LO. Use 'mfhi'/'mflo' to read the result. msubu $t1,$t2
# Start accumulator at 100, then subtract 6 times 7. Inspect LO: 58.
li $t0, 100
mtlo $t0
mthi $zero
li $t0, 6
li $t1, 7
msubu $t0, $t1
mflo $t2