Condition Codes

Condition CodeNameDefinition
e, zEqual, ZeroZF == 1
ne, nzNot Equal, Not ZeroZF == 0
oOverflowOF == 1
noNo OverflowOF == 0
sSignedSF == 1
nsNot SignedSF == 0
pParityPF == 1
npNo ParityPF == 0
c, b, naeCarry, Below, Not Above or EqualCF == 1
nc, nb, aeNo Carry, Not Below, Above or EqualCF == 0
a, nbeAbove, Not Below or EqualCF == 0 & ZF == 0
na, beNot Above, Below or EqualCF == 1 | ZF == 1
ge, nlGreater or Equal, Not LessSF == OF
nge, lNot Greater or Equal, LessSF != OF
g, nleGreater, Not Less or EqualZF == 0 & SF == OF
ng, leNot Greater, Less or EqualZF == 1 | SF != OF

adapted from https://riptutorial.com/x86/example/6976/flags-register