条件跳转指令总结

指令 全称 cmp a,b flag条件
jz/je jump if zero/equal a=b ZF=1
jnz/jne jump if not zero/equal a!=b ZF=0
jb/jnae/jc jump if below/not above or equal/carry a<b,无符号数 CF=1
ja/jnbe jump if above/not below or equal a>b,无符号数
jna/jbe jump if not above/ below or equal a<=b,无符号数
jnc/jnb/jae jump if not carry/not below /above or equal a>=b,无符号数 CF=0
jg/jnle jump if greater/not less or equal a>b,有符号数
jge/jnl jump if greater or equal/not less a>=b,有符号数
jl/jnge jump if less /not greater or equal a<b,有符号数
jle/jng jump if less or equal/not greater a<=b,有符号数
jo jump if overflow OF=1
js jump if signed SF=1

猜你喜欢

转载自blog.csdn.net/CSNN2019/article/details/109683535