DIV performs unsigned integer division. The explicit operand
provided is the divisor; the dividend and destination operands are
implicit, in the following way:
-
For
DIV r/m8,AXis divided by the given operand; the quotient is stored inALand the remainder inAH. -
For
DIV r/m16,DX:AXis divided by the given operand; the quotient is stored inAXand the remainder inDX. -
For
DIV r/m32,EDX:EAXis divided by the given operand; the quotient is stored inEAXand the remainder inEDX.
Signed integer division is performed by the IDIV instruction:
see IDIV.