[<<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
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson