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 


Comparing 2 registers

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
nero1232
Advanced Cheater
Reputation: 0

Joined: 08 Mar 2017
Posts: 65

PostPosted: Thu Mar 16, 2017 5:34 am    Post subject: Comparing 2 registers Reply with quote

Hi,

I am comparing 2 registers like this:

cmp rcx,rdx
jge clearmyarray



RCX = 8
RDX = game.exe+offset1 = 8

However in memory RDX is showing as 0000100000000008, however in cheat engine the value is 8. I am guessing this is a signed value?

My compare is failing because RCX is just 000000000000008 and RDX is 0000100000000008. How can I compare while ignoring the sign bit as I just want to compare if RCX and RDX == 8?

Thanks
Back to top
View user's profile Send private message
pellik
Advanced Cheater
Reputation: 0

Joined: 14 Jun 2013
Posts: 93

PostPosted: Thu Mar 16, 2017 6:11 am    Post subject: Reply with quote

cmp cl, dl
Back to top
View user's profile Send private message
nero1232
Advanced Cheater
Reputation: 0

Joined: 08 Mar 2017
Posts: 65

PostPosted: Thu Mar 16, 2017 6:23 am    Post subject: Reply with quote

pellik wrote:
cmp cl, dl


Thanks this works but what does it do?
Back to top
View user's profile Send private message
pellik
Advanced Cheater
Reputation: 0

Joined: 14 Jun 2013
Posts: 93

PostPosted: Thu Mar 16, 2017 6:25 am    Post subject: Reply with quote

http://stackoverflow.com/questions/15191178/assembly-programming-memory-allocating-eax-vs-ax-ah-al
Back to top
View user's profile Send private message
nero1232
Advanced Cheater
Reputation: 0

Joined: 08 Mar 2017
Posts: 65

PostPosted: Thu Mar 16, 2017 6:28 am    Post subject: Reply with quote

pellik wrote:
questions/15191178/assembly-programming-memory-allocating-eax-vs-ax-ah-al


Perfect cheers
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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