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.
AAM Instruction
 Detail Key Example                    Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Title:    ASCII Adjust after Multiply           Flags: O D I T S Z A P C
                                                         ═════════════════
  Syntax:   AAM                                          ?       ± ± ? ± ?
 
  See also: AAA, AAS, AAD, DAA, DAS
 
  Description:
 
     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.
 
     Use this instruction to adjust the product after a MUL instruction
     that multiplies unpacked BCD digits in AH and AL. You can also use
     AAM to adjust the quotient after a DIV instruction that divides a
     binary number less than 100 decimal in AX by an unpacked BCD
     number.
                                    -♦-