maddu

Operands

$reg, $reg

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

Variants

  • Multiply-accumulate unsigned : Multiplies $t1 by $t2 treating both as unsigned 32-bit integers, then adds the 64-bit product to HI:LO. Use 'mfhi'/'mflo' to read the accumulated result. maddu $t1,$t2
# Start HI:LO at zero, then accumulate 6 times 7. Inspect HI:LO: 42.
mtlo $zero
mthi $zero
li $t0, 6
li $t1, 7
maddu $t0, $t1
mflo $t2
mfhi $t3