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.
AAM
   Summary  Detail  Example  Key to Flags
──────────────────────────────────────────────────────────────────────────────
 
ASCII Adjust After Multiply                      Flags:  O D I T S Z A P C
                                                         ═════════════════
Syntax:  AAM                                             ?       ± ± ? ± ?
 
  Converts an 8-bit binary number less than 100 decimal in AL to an
  unpacked BCD number in AX. The most significant digit goes in AH
  and the least significant in AL. This instruction is often used to
  adjust the product after a MUL instruction that multiplies unpacked
  BCD digits in AH and AL. It is also used to adjust the quotient
  after a DIV instruction that divides a binary number less than 100
  decimal in AX by an unpacked BCD number.
                                    -♦-