Dr.Disrespect Grandmaster Cheater Reputation: 3
Joined: 17 Feb 2016 Posts: 526
|
Posted: Tue May 24, 2016 10:29 pm Post subject: cmp and jnl.(Fixed) |
|
|
Please take a look at the following code:
Code: |
push ebx
push ecx
xor ebx,ebx
xor ecx,ecx
mov bl,[edi+11]
mov cl,[edi+12]
cmp cl,bl
pop ecx
pop ebx
jge 12345678
|
I did the following test:
if cl == 60, bl == 5F, then "jge 12345678" is executed, which is correct because 60 is no less than 5F. However, if cl == CA, bl == 5F, "jge 12345678" is not executed, which is weird. Shouldn't CA >= 5F ?
Thanks in advance.
Edit:
Problem fixed, instead of "jge", it should be "jae", it's for unsigned integers.
|
|