Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- iAPx86 - <b>daa decimal adjust after addition 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]
DAA             Decimal Adjust after Addition        Flags: O D I T S Z A P C
                                                            ? - - - * * * * *
DAA

        Logic   if ((AL AND 0Fh) > 9) OR (AF = 1)
                   AL . AL + 6
                   AF . 1
                else AF . 0
                endif
                if (AL > 9Fh) OR (CF = 1)
                   AL . AL + 60h
                   CF . 1
                else CF . 0
                endif

    Execute DAA after executing an ADD or ADC instruction on two
    packed BCD operands. The addition leaves a two-digit byte result
    in the AL register. The DAA instruction adjusts AL to contain the
    correct two-digit packed decimal result.


    Opcode      Format
    27          DAA


    Length and timing
    Operands    Bytes   8088    186     286     386     486     Pentium
    -            1       4       4       3       4       2       3   NP

See Also: DAS ADC Flags

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