The SET instructions set the 8-bit destination to 1 if the specified condition is true, otherwise destination is set to 0.
The conditions for each instruction are given below. The terms "above" and "below" are used for un-signed integers, "less" and "greater" for signed integers. Note that several mnemonics have the same meaning.
Instruction SET to 1 if ... else to 0 Flags SETA, SETNBE Above, Not Below or Equal CF=0 AND ZF=0 SETAE,SETNB,SETNC Above or Equal, Not Below, No Carry CF=0 SETBE, SETNA Below or Equal, Not Above CF=1 OR ZF=1 SETB, SETC,SETNAE Below, Carry, Not Above or Equal CF=1 SETE, SETZ Equal, Zero ZF=1 SETNE, SETNZ Not Equal, Not Zero ZF=0 SETP, SETPE Parity, Parity Even PF=1 SETNP, SETPO No Parity, Parity Odd PF=0
SETG, SETNLE Greater, Not Less or Equal SF=OF AND ZF=0 SETGE, SETNL Greater or Equal, Not Less SF=OF SETLE, SETNG Less or Equal, Not Greater SF<>OF OR ZF=1 SETL, SETNGE Less, Not Greater or Equal SF<>OF SETO Overflow OF=1 SETNO No Overflow OF=0 SETS Sign (negative) SF=1 SETNS No Sign (positive) SF=0