DIV - Divide
DIV: Divide
DIV calculates B / A and stores the integer result in B. Division by zero terminates the process!
Syntax
DIV A, B ; B = B / A (integer division)⚠️ Zero Division Trap
If the divisor (A) is zero, the executing process is immediately terminated — similar to executing DAT. This can be exploited as a defensive trap!
Strategic Uses
Defensive Trap
Place a DIV #0 where the enemy might land to kill their process:
trap: DIV #0, 0 ; Any process hitting this diesScaling Values
Reduce pointer values for finer-grained scanning:
DIV #2, ptr ; Halve the scan stepModifiers
.A— Divide A-fields.B— Divide B-fields (default).F— Divide both fields independently
Notes
Division always produces integer results (floor division). DIV is rarely seen in competitive play but can create unique defensive patterns.