Command: DIV - Unsigned Divide
Arguments: SRC: Register or memory location (8, 16 or 32 Bit)
Usage: DIV SRC
Effects: 8Bit SRC: AL:=AX / SRC AH:=Rest 16Bit SRC: AX:=DX:AX / SRC DX:=Rest 32Bit SRC: EAX:=EDX:EAX / SRC EDX:=Rest Divedes (unsigned) the value in the pair of registers as your can see above (according to the size of SRC) by SRC. The result of the division is saved in the lower part of the pair, the remainder is saved in the upper part of the pair.
Flags to be set: The CF, OF, SF, ZF, AF, and PF flags are undefined.
Misc: Non-integral results are truncated towards 0.