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 


pointer compare??

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

Joined: 08 Jun 2006
Posts: 39
Location: Montreal,Quebec

PostPosted: Wed Oct 25, 2006 4:43 pm    Post subject: pointer compare?? Reply with quote

Hi there, I have some good assembly knowledge but this one gives me problems. I wonder if there is a way to compare 2 pointers... like :

chkl:
cmp [ebx+574],[ecx+C] <---------------!!!
je chgl
inc [ebx+574]
jmp exit

chkr:
cmp [ecx+4],[ebx+574] <-------------!!!
je chgr
dec [ebx+574]
jmp exit

as soon as i include my cmp in auto-assembler, my cheat engine crashes... Any way to make it work? I really need to compare these 2 values and they are pointers... Thanks

EDIT: by the way, ebx and ecx already contain the base address, which I add the offset in the cmp
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 474

Joined: 09 May 2003
Posts: 25962
Location: The netherlands

PostPosted: Thu Oct 26, 2006 1:23 am    Post subject: Reply with quote

Code:

chkl:
push eax
mov eax,[ecx+C]
cmp [ebx+574],eax
pop eax
je chgl
inc [ebx+574]
jmp exit

chkr:
push eax
mov eax,[ebx+574]
cmp [ecx+4],eax
pop eax
je chgr
dec [ebx+574]
jmp exit

_________________
Tools give you results. Knowledge gives you control.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
alex12
Cheater
Reputation: 0

Joined: 08 Jun 2006
Posts: 39
Location: Montreal,Quebec

PostPosted: Thu Oct 26, 2006 12:20 pm    Post subject: Reply with quote

Thank you Dark Byte, I'm new to x86 assembly, I have done a lot of programs in assembly language when I was programming uCs by Motorola for hardware control and there is a few instructions that are way different. Thank you again, keep up the work, CE is a cute and very powerful debugger. thumbs up!
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