汇编跳转后比较标志是否被清除?

Kat*_*iss 3 x86 assembly

这是一个基本问题,但我很难找到答案。在汇编中,无论是哪一个,用于执行的标志JE, JNE, JL, JG, JLE, JGE在跳转完成后通常都会被清除吗?

fuz*_*fuz 5

条件跳转指令不设置标志。因此,您可以在同一比较中多次跳转:

cmp eax, ecx
jl foo         ; if eax < ecx jump to foo
jg bar         ; if eax > ecx jump to bar
jmp baz        ; otherwise jump to baz
Run Code Online (Sandbox Code Playgroud)