| Beginner Question I have a function which uses %ecx register as a parameter
and a memory variable set to 0.
I only want to jump when the memory variable is greater than or equal
to %ecx, that is when %ecx is less than or equal to MEM. Since MEM is 0, %ecx is greater.
Will this prevent it from jumping when %ecx is greater:
[GNU Assembler, AT&T syntax]
cmpl MEM,%ecx
jle donotchange // jump only when %ecx is less
movl %ecx,MEM
donotchange: |