HELLo I need some infos about setc assembly instruction, but i can't find anything:( Is anyone has sth about this **** ??
P.S. Sorry for my english.
Setc instruction
Re: Setc instruction
SETxx works like Jxx jump. But it dosn't jump, it set a bit.
That what NASM docs say:
That what NASM docs say:
For example:Set Register from Condition
SETcc r/m8 ; 0F 90+cc /2 [386]
SETcc sets the given 8-bit operand to zero if its condition is not satisfied, and to 1 if it is.
Code: Select all
cmp ax,bx
je target;IF ax=bx then JMP to TARGET
target:
Code: Select all
cmp ax,bx
sete byte[target];IF ax=bx then target=1 else target=0
Code: Select all
cmp ax,bx
setne al;IF ax<>bx then al=1 else al=0
dw 0xAA55