x86 instructions
test a, b
:
- operation AND(a,b)
- result discarded
- SF: most significant bit of result
- ZF: if result 0, then 1
cmp a, b
- ZF: if a == b then 1
- CF: if a < b then 1
je/jz loc
jb/jnae loc
jg/jnle loc
- jump if zf = 0 and sf = of
movs(b/w/d):
- move data from ESI to EDI
rep instr:
- repeat instr ECX number of times