qa.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
   Summary  Detail  Example  Key to Flags
──────────────────────────────────────────────────────────────────────────────
 
Unsigned Divide                                  Flags:  O D I T S Z A P C
                                                         ═════════════════
Syntax:  DIV src                                         ?       ? ? ? ? ?
 
  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, then 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.
                                    -♦-