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 


Why doesn't this compare work?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
PinPoint
Expert Cheater
Reputation: 10

Joined: 07 Apr 2016
Posts: 223
Location: Scotland

PostPosted: Thu Aug 11, 2016 3:00 am    Post subject: Reply with quote

is it the address you want to compare?
if you are getting the address for "grabber" from a register why not compare to that register instead?

or you could use lea eax,[grabber]...then compare to that register. might need to push/pop though


Last edited by PinPoint on Thu Aug 11, 2016 5:17 am; edited 1 time in total
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Thu Aug 11, 2016 5:12 am    Post subject: Reply with quote

You can't use double brackets in assembly. It might've worked in your Lua script.
Code:
push eax
mov eax,[grabber]
cmp [grabber],Module+18ACDC
pop eax
jne blah
Back to top
View user's profile Send private message
cooleko
Grandmaster Cheater
Reputation: 11

Joined: 04 May 2016
Posts: 717

PostPosted: Thu Aug 11, 2016 5:43 am    Post subject: Reply with quote

Zanzer wrote:
You can't use double brackets in assembly. It might've worked in your Lua script.
Code:
push eax
mov eax,[grabber]
cmp [eax],Module+18ACDC
pop eax
jne blah

Ftfy
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Thu Aug 11, 2016 6:54 am    Post subject: Reply with quote

Oops
Back to top
View user's profile Send private message
Stacktrace
Expert Cheater
Reputation: 1

Joined: 04 Jul 2015
Posts: 105

PostPosted: Fri Aug 12, 2016 5:01 am    Post subject: Reply with quote

Zanzer wrote:
You can't use double brackets in assembly. It might've worked in your Lua script.
Code:
push eax
mov eax,[grabber]
cmp [grabber],Module+18ACDC
pop eax
jne blah


it literally compared the exact same thing as when I tried, this is making my brain explode. Well, I found a workaround but thanks guys!
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