SCASW

sampei02@tiscali.it sampei02@tiscali.it
Sat Oct 24 19:21:11 GMT 2020


In GNU assembly, I don’t understand behaviour of SCASW instruction, for example:

SCASW
JA major

1-Program jumps to “major" label when AX  > (%EDI) ?
2-Source operand is AX while Destination operand is (%EDI) ?
3-SCASW works in opposite way to CMP, that is CMP calculates DST-SRC while SCAN calculates SRC_DST, It’s OK ?

Thanks



More information about the Binutils mailing list