| View previous topic :: View next topic |
| Author |
Message |
alex12 Cheater
Reputation: 0
Joined: 08 Jun 2006 Posts: 39 Location: Montreal,Quebec
|
Posted: Wed Oct 25, 2006 4:43 pm Post subject: pointer compare?? |
|
|
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 |
|
 |
Dark Byte Site Admin
Reputation: 474
Joined: 09 May 2003 Posts: 25962 Location: The netherlands
|
Posted: Thu Oct 26, 2006 1:23 am Post subject: |
|
|
| 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 |
|
 |
alex12 Cheater
Reputation: 0
Joined: 08 Jun 2006 Posts: 39 Location: Montreal,Quebec
|
Posted: Thu Oct 26, 2006 12:20 pm Post subject: |
|
|
| 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 |
|
 |
|