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 


How to compare two values?

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

Joined: 17 Jan 2018
Posts: 118

PostPosted: Wed Apr 10, 2019 10:07 am    Post subject: How to compare two values? Reply with quote

How to compare two values in Hex in the same address? Example: If value in the address 009C3E6E is 0x06 or if value in the address 009C3E6E is 0x16 then jump if not equal.
Code:
cmp byte ptr [009C3E6E],6 or cmp byte ptr [009C3E6E],16
jne @f
Back to top
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 18

Joined: 01 Feb 2016
Posts: 1550

PostPosted: Wed Apr 10, 2019 10:27 am    Post subject: Reply with quote

duplicate the code and the jump, you cant check for multiple conditions in one instruction.
_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote:
i am a sweetheart.
Back to top
View user's profile Send private message Visit poster's website
ParkourPenguin
I post too much
Reputation: 83

Joined: 06 Jul 2014
Posts: 2743

PostPosted: Wed Apr 10, 2019 11:16 am    Post subject: Reply with quote

Code:
movzx eax,byte ptr[006C3E6E]
and eax,EF
cmp eax,6
jne @f

_________________
I don't know where I'm going, but I'll figure it out when I get there.
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