Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Assembly Language - <b>aam ascii adjust after multiply flags: o d i t s z a p c</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
AAM              ASCII Adjust after Multiply         Flags: O D I T S Z A P C
                                                            ?       * * ? * ?
AAM

          Logic:    AH . AL / 10
                    AL . AL MOD 10

    This instruction corrects the result of a previous multiplication of
    two valid unpacked BCD operands. A valid 2-digit unpacked BCD number
    is taken from AX, the adjustment is performed, and the result is
    returned to AX. The high-order nibbles of the operands that were
    multiplied must have been 0 for this instruction to produce a correct
    result.

  --------------------------------------------------------------------------
   Operands                  Clocks   Transfers  Bytes   Example
   no operands                 83         -        1     AAM
  --------------------------------------------------------------------------

       Note:          Unpacked BCD stores one digit per byte; AH contains
                      the most-significant digit and AL the least-
                      significant digit.

See Also: AAA AAD AAS MUL IMUL Flags

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson