Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


cmp and jnl.(Fixed)

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Dr.Disrespect
Grandmaster Cheater
Reputation: 3

Joined: 17 Feb 2016
Posts: 526

PostPosted: Tue May 24, 2016 10:29 pm    Post subject: cmp and jnl.(Fixed) This post has 1 review(s) Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites