What is a JCC instruction in x86

I only know instructions, such as je, jnl, etc., in the x86 AT & T syntax.

What does jcc mean? Any transition instructions?

+4
source share
2 answers

ccstands for condition code.

JccIt is not a separate instruction, it simply describes the transition mnemonics , which checks the condition code before the transition.

JNE, for example, checks the condition code before proceeding.

A typical case is to make a comparison (which sets CC), and then use one of the jump mnemonics.

, AND, OR, XOR, , (, , CMP).

+7

CC . FLAGS, JECXZ, Intel Jcc Jcc insn set ref manual entry.

, Agner Fog, JECXZ , -.

?

, .

x86 : LOOP/LOOPcc. LOOPE LOOPNE - , . ( LOOP, )

Jcc JMP , (, jmp *rax AT & T). , . CALL RET .

XBEGIN , XEND, , .


"cc", FLAGS, : SETcc CMOVcc. , Jcc, FLAGS - , . , .


x86:

GNU C "cc", , inline-asm . ( x86 x86-64: clobber "cc". (, ARM) x86 , , gcc x86, , , , , "cc" clobber.)

+3

Source: https://habr.com/ru/post/1655037/


All Articles