目录 Table of Contents
读取条件码指令-1
读取条件码
Set X
指令
读取当前的条件码 (或者某些条件码的组合), 并存入目的字节寄存器
我从条件码里面把它读出来, 然后放到一个通用寄存器里面
set 系列指令前缀当然是 set 了, 但是后缀有很多种 :
SetX 系列 | Condition 条件码 | 描述 |
---|---|---|
sete | ZF | Equal/Zero |
setne | ~ZF | Not Equal/Not Zero |
sets | SF | Negative |
setns | ~SF | Nonnegative |
setg | ~(SF^OF) & ~ZF | Greater (Signed) |
setge | ~(SF^OF) | Greater or Equal (Signed) |
setl | (SF^OF) | Less (Signed) |
setle | (SF^OF)|ZF | Less or Equal (Signed) |
seta | ~CF&~ZF | Above (unsigned) |
setb | CF | Below (unsigned) |
~
取反运算