Intel 64 and IA-32 Architectures Software Developers Manual Volume 2A, Instruction Set Reference, A-M
Vol. 2 3-259
INSTRUCTION SET REFERENCE, A-M
Example
SUB AL, BL Before: AL=35H BL=47H EFLAGS(OSZAPC)= XXXXXX
After: AL=EEH BL=47H EFLAGS(0SZAPC)= 010111
DAA Before: AL=EEH BL=47H EFLAGS(OSZAPC)= 010111
After: AL=88H BL=47H EFLAGS(0SZAPC)= X10111
Flags Affected
The CF and AF flags are set if the adjustment of the value results in a decimal borrow
in either digit of the result (see the “Operation” section above). The SF, ZF, and PF
flags are set according to the result. The OF flag is undefined.
Protected Mode Exceptions
None.
Real-Address Mode Exceptions
None.
Virtual-8086 Mode Exceptions
None.
Compatibility Mode Exceptions
None.
64-Bit Mode Exceptions
#UD If in 64-bit mode.