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.
IDIV Instruction
 Detail Key Example                    Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Title:    Signed Divide                         Flags: O D I T S Z A P C
                                                         ═════════════════
  Syntax:   IDIV src                                     ?       ? ? ? ? ?
 
  See also: DIV, IMUL, MUL, SAR
 
  Description:
 
     Divides an implied destination operand by a specified source
     operand. Both operands are treated as signed 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 goes into DX. If the
     source is 8 bits wide, the implied destination 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.
                                    -♦-