Hind Forsum Hind Forsum - 6 months ago 73
Linux Question

What is JCC instruction in assembly language(intel AT&T)

When studying intel assembly language, I only know instructions like je, jnl, etc, but what does jcc actually mean? All jump instructions?


cc stands for condition code.

Jcc is not a single instruction, it just describes the jump mnemonics that check the condition code before jumping.

JNE for instance, checks the condition code before jumping.

The typical case is to do a comparison (which sets the CC) and then use one of the jump mnemonics afterwards.

The condition code can also be set with instructions like AND, OR, XOR, addition, subtraction (or CMP, of course).