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