News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

the alleged scheme of formation of conditional jumps/cmov/setcc

Started by Mikl__, January 13, 2016, 07:21:07 PM

Previous topic - Next topic

Mikl__

the alleged scheme of formation of conditional jumps/cmov/setcc
Condition Codes (note that most Jcc instructions have several aliases):

condition
code (dec)
abcinvertMnemonicsFlagsOperationLong-Winded Name
000 0 0 0oOF=1   Overflow
010 0 0 1noOF=0   Not Overflow
020 0 1 0c/b/naeCF=1< unsignedCarry / Below unsigned
03   0 0 1 1nc/nb/aeCF=0> unsignedNot Carry / Not Below / Above/Equal
040 1 0 0z/eZF=1==Zero / Equal
050 1 0 1nz/neZF=0!=Not Zero / Not Equal
060 1 1 0be/naCF=1 and ZF=1<= unsignedBelow/Equal / Not Above
070 1 1 1nbe/aCF=0 and ZF=0> unsignedAbove / Not Below/Equal
08   1 0 0 0sSF=1< 0Sign bit (Negative)
091 0 0 1nsSF=0>= 0Not Sign (Positive)
101 0 1 0p/pePF=1Parity (Even)
111 0 1 1np/poPF=0    No Parity (Odd)
12   1 1 0 0l/ngeSF<>OF<Less / Not Greater/Equal
131 1 0 1nl/geSF==OF>=Not Less / Greater/Equal
141 1 1 0le/ngZF=1 or SF<>OF<=Less/Equal / Not Greater
151 1 1 1nle/gZF=0 and SF==OF>Not Less/Equal / Greater

Grincheux

Thank you, could be useful because I often forget the name of the unsigned Jcc