What flags do each jxx instruction use?

jz is obviously jump if the zero flag but what about ja jb etc?

jz is obviously jump if the zero flag but what about ja jb etc?

Intel Developers Manual Volume 2 cover this topic.

O (Overflow) OF = 1

NO (No overflow) OF = 0

C/B/NAE (Carry, Below, Not above or equal) CF = 1

NC/NB/AE (No carry, Not below, Above or equal) CF = 0

E/Z (Equal, Zero) ZF = 1

NE/NZ (Not equal, Not zero) ZF = 0

BE/NA (Below or equal, Not above) CF = 1 or ZF = 1

NBE/A (Not below or equal, Above) CF = 0 and ZF = 0

S (Sign) SF = 1

NS (Not sign) SF = 0

P/PE (Parity, Parity even) PF = 1

NP/PO (Not parity, Parity odd) PF = 0

L/NGE (Less than, Not greater than or equal to) SF <> OF

NL/GE (Not less than, Greater than or equal to) SF = OF

LE/NG (Less than or equal to, Not greater than) ZF = 1 or SF <> OF

NLE/G (Not less than or equal to, Greater than) ZF = 0 and SF = OF

NO (No overflow) OF = 0

C/B/NAE (Carry, Below, Not above or equal) CF = 1

NC/NB/AE (No carry, Not below, Above or equal) CF = 0

E/Z (Equal, Zero) ZF = 1

NE/NZ (Not equal, Not zero) ZF = 0

BE/NA (Below or equal, Not above) CF = 1 or ZF = 1

NBE/A (Not below or equal, Above) CF = 0 and ZF = 0

S (Sign) SF = 1

NS (Not sign) SF = 0

P/PE (Parity, Parity even) PF = 1

NP/PO (Not parity, Parity odd) PF = 0

L/NGE (Less than, Not greater than or equal to) SF <> OF

NL/GE (Not less than, Greater than or equal to) SF = OF

LE/NG (Less than or equal to, Not greater than) ZF = 1 or SF <> OF

NLE/G (Not less than or equal to, Greater than) ZF = 0 and SF = OF

Google for tttn by The Svin. It very handy for determining the right jump for the flags involved.

Regards, P1 :cool:

Regards, P1 :cool: