div $a0, $a1 mfhi $t1 # remainder mflo $t2 # quotient
div $a0, $a1 mfhi $a2 # remainder mflo $v0 # quotient