Multiply and Divide
MIPS Language Machine and Assembly Language Lectures2, 3 - Machine Language
Multiplicaiton
Signed:
mult $s, $d => $s x $d
Unsigned:
multu $s, $d => $s x $d
Storage
hi holds MSW lo holds LSW (Meant for overflow)
Division
Signed:
div $s, $d => $s/$d
Unsigned:
divu $s, $d => $s/$d
Storage
quotient is in lo remainder is in hi
- Moving from hi/lo: mflo/mfhi d)