 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
Fresco Grandmaster Cheater
Reputation: 4
Joined: 07 Nov 2010 Posts: 600
|
Posted: Wed Mar 14, 2012 8:59 am Post subject: pointer makes the game crash |
|
|
| Code: | push eax
mov eax,"game.exe"+base
mov eax,[eax]
add eax,hex_offset_1
mov eax,[eax]
add eax,hex_offset_2
mov eax,[eax]
add eax,hex_offset_3
mov eax,[eax]
add eax,hex_offset_4
mov eax,[eax]
add eax,hex_offset_last
mov [label],eax
pop eax |
why the code above works, and the one below makes the game crash ?
| Code: | push eax
mov eax,"game.exe"+base
mov eax,[eax+hex_offset_1]
mov eax,[eax+hex_offset_2]
mov eax,[eax+hex_offset_3]
mov eax,[eax+hex_offset_4]
lea eax,[eax+hex_offset_last]
mov [label],eax
pop eax |
_________________
... Fresco |
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 474
Joined: 09 May 2003 Posts: 25949 Location: The netherlands
|
Posted: Wed Mar 14, 2012 2:44 pm Post subject: |
|
|
Try
| Code: |
push eax
mov eax,["game.exe"+base]
mov eax,[eax+hex_offset_1]
mov eax,[eax+hex_offset_2]
mov eax,[eax+hex_offset_3]
mov eax,[eax+hex_offset_4]
lea eax,[eax+hex_offset_last]
mov [label],eax
pop eax
|
_________________
Tools give you results. Knowledge gives you control.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
Fresco Grandmaster Cheater
Reputation: 4
Joined: 07 Nov 2010 Posts: 600
|
|
| Back to top |
|
 |
|
|
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
|
|