AAM
ASCII ADJUST
FOR MULTIPLY
AAM
Operation:
(AH)
~
(AL) /
OAH
(AL)
~
(AL) %
OAH
Description:
AAM (ASCII Adjust for Multiply) corrects
the result
of
a previous multiplication
of
two
valid unpacked decimal operands. A valid
2-
digit unpacked decimal number
is
derived
from the content
of
AH
and
AL
and
is
Encoding:
1101010000001010
Flags
Affected:
PF,
SF, ZF.
AF, CF,
OF
undefined
returned to
AH
and
AL. The high-order half-
bytes
of
the multiplied operands must have
been
OH
for AAM to produce a correct result.
AAM updates
PF,
SF and ZF; the content
of
AF, CF and
OF
is
undefined following execu-
tion of
AAM.
AAM
Operands
Clocks
Transfers
Bytes
AAM
Coding
Example
(no operands)
83
-
2
AAM
2-51