| <<< Integer Multiplication | Index | Using registers >>> |
Computes quotient and remainder. Simultaneously stores quotient in "lo" and remainder in "hi"
# Instruction # Meaning in pseudocode
div $t1, $t2 # lo = $t1 / $t2; hi = $t1 % $t2
mflo $t0 # $t0 = lo quotient
mfhi $t3 # $t3 = hi remainder
| <<< Integer Multiplication | Index | Using registers >>> |