Multiply-subtract signed : Multiplies $t1 by $t2 (signed) to form a 64-bit product, then subtracts that product from the current 64-bit value in HI:LO. Use 'mfhi'/'mflo' to read the result.
msub
Operands
$reg, $regVariants
- Multiply-subtract signed : Multiplies $t1 by $t2 (signed) to form a 64-bit product, then subtracts that product from the current 64-bit value in HI:LO. Use 'mfhi'/'mflo' to read the result. msub $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
msub $t0, $t1
mflo $t2