DAA
DECIMAL
ADJUST
FOR
ADDITION
Operation:
if ((AL) &
OFH)
> 9 or (AF) = 1 then
(AL)
+-
(AL) + 6
(AF)
+-1
if (AL) > 9FH or (CF) = 1 then
(AL)
+- (AL) + 60H
(CF)
+-1
Description:
DAA (Decimal Adjust for Addition) corrects
the result of previously adding two valid
packed decimal operands (the destination
operand
ml)st have been register AL). DAA
changes the content
of
AL to a pair of valid
packed decimal digits.
It
updates AF, CF, PF,
SF and ZF; the content
of
OF
is
undefined
following execution
of
DAA.
Encoding:
100100111
I
Flags Affected:
AF, CF, PF, SF,
ZF
OF
undefined'
DAA
DAA
Operands
Clocks
Transfers
Bytes
DAA
Coding
Example
(no operands)
4 - 1
DAA
2-70