The DIV instruction performs an unsigned division. The dividend is implicit; only the divisor is given as an operand. The remainder is always less than the divisor. The type of the divisor determines which registers to use as follows:
┌─────────┬───────────┬─────────┬──────────┬───────────┐ │ SIZE │ DIVIDEND │ DIVISOR │ QUOTIENT │ REMAINDER │ ├─────────┼───────────┼─────────┼──────────┼───────────┤ │ byte │ AX │ r/m8 │ AL │ AH │ ├─────────┼───────────┼─────────┼──────────┼───────────┤ │ word │ DX:AX │ r/m16 │ AX │ DX │ ├─────────┼───────────┼─────────┼──────────┼───────────┤ │ dword │ EDX:EAX │ r/m32 │ EAX │ EDX │ └─────────┴───────────┴─────────┴──────────┴───────────┘