Division with overflow : Divide $t1 by $t2 then set LO to quotient and HI to remainder (use mfhi to access HI, mflo to access LO)
div
Operands
$reg, $reg, [$reg/int16/int32]Variants
- Division with overflow : Divide $t1 by $t2 then set LO to quotient and HI to remainder (use mfhi to access HI, mflo to access LO) div $t1,$t2
- DIVision : Set $t1 to ($t2 divided by $t3, integer division) div $t1,$t2,$t3
- DIVision : Set $t1 to ($t2 divided by 16-bit immediate, integer division) div $t1,$t2,-100
- DIVision : Set $t1 to ($t2 divided by 32-bit immediate, integer division) div $t1,$t2,100000
Loading...