Assembly Language Help (alang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
DIV Instruction
 ◄Detail► ◄Key► ◄Example►                    ◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
 
  Title:    Unsigned Divide                       Flags: O D I T S Z A P C
                                                         ═════════════════
  Syntax:   DIV src                                      ?       ? ? ? ? ?
 
  See also: IDIV, MUL, SHR
 
  Description:
 
     Divides an implied destination operand by a specified source
     operand. Both operands are treated as unsigned numbers. If the
     source (divisor) is 16 bits wide, the implied destination
     (dividend) is the DX:AX register pair.
 
     The quotient goes into AX and the remainder into DX. If the
     source is 8 bits wide, the implied destination operand is
     AX. The quotient goes into AL and the remainder into AH. On the
     80386/486, if the source is EAX, the quotient goes into EAX and
     the remainder into EDX.
                                    -♦-