AAA
Operation:
ASCII ADJUST
FOR ADDITION
Flags
Affected:
AF, CF.
AAA
if
((AL) &
OFH)
>9
or (AF) = 1 then
(AL)
~
(AL)
+ 6
OF, PF, XF, ZF undefined
(AH)
~
(AH) + 1
(A
F)
~
1
(CF)
~
(AF)
(AL)
~
(AL) &
OFH
Description:
AAA (ASCII Adjust for Addition) changes
the contents
of
register AL to a valid unpacked
decimal number; the high-order half-byte
is
zeroed.
AAA
updates AF and CF; the content
of
OF,
PF,
SF
and
ZF
is
undefined following
execution
of
AAA.
Encoding:
100110111
I
AAA Operands
Clocks Transfers
(no operands)
4
-
2-49
Bytes
AAA Coding
Example
1
AAA