B-1
APPENDIX B
EFLAGS CONDITION CODES
Table B-1 gives all the condition codes that can be tested for by the CMOVcc, FCMOVcc, Jcc
and SETcc instructions. The condition codes refer to the setting of one or more status flags (CF,
OF, SF, ZF, and PF) in the EFLAGS register. The Mnemonic column gives the suffix (cc) add-
ed to the instruction to specific the test condition. The Condition Tested For column describes
the condition specified in the Status Flags Setting column. The Instruction Subcode column
gives the opcode suffix added to the main opcode to specify a test condition.
Table B-1. EFLAGS Condition Codes
Mnemonic (cc)Condition Tested For
Instruction
Subcode
Status Flags Setting
O
Overflow
0000OF = 1
NO
No overflow
0001OF = 0
B
NAE
Below
Neither above nor equal
0010CF = 1
NB
AE
Not below
Above or equal
0011CF = 0
E
Z
Equal
Zero
0100ZF = 1
NE
NZ
Not equal
Not zero
0101ZF = 0
BE
NA
Below or equal
Not above
0110(CF OR ZF) = 1
NBE
A
Neither below nor equal
Above
0111(CF OR ZF) = 0
S
Sign
1000SF = 1
NS
No sign
1001SF = 0
P
PE
Parity
Parity even
1010PF = 1
NP
PO
No parity
Parity odd
1011PF = 0
Mnemonic
Meaning
Instruction
SubcodeCondition Tested
L
NGE
Less
Neither greater nor equal
1100(SF xOR OF) = 1
NL
GE
Not less
Greater or equal
1101(SF xOR OF) = 0