 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
Xblade Of Heaven Master Cheater
Reputation: 0
Joined: 16 Oct 2005 Posts: 395 Location: DEAD
|
Posted: Tue Jun 09, 2009 10:11 am Post subject: assembler problem |
|
|
hello all I want to comment on a problem I have to move when a specific area code, I can not write here, the possibility of writing address 00400019 in?
my example:
| Code: |
[ENABLE]
alloc(newmem,256) //2kb should be enough
label(returnhere)
Sam2Game.dll+7b6c9:
jmp newmem
nop
returnhere:
newmem:
pushad
//jmp 00403064
lea ebx,[esi+00000488]
cmp [00402fe4],ebx
mov [00402fe4],00000000
je 0330eee7
cmp [00402fe0],ebx
mov [00402fe0],7de9ef58
je 0330eee7
popad
mov [esi+00000488],00000000
jmp 0313b6ce
popad
mov [esi+00000488],eax
jmp 0313b6ce
[DISABLE]
dealloc(newmem)
Sam2Game.dll+7b6c9:
mov [esi+00000488],eax
|
IMAGE WHITOUT WRITE CODE
any can help me?
_________________
Welcome to the Hell.
 |
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25813 Location: The netherlands
|
Posted: Tue Jun 09, 2009 10:49 am Post subject: |
|
|
Well, first one, why do you want to write to 00402fe4 and not just alloc a 4 byte region to store it in instead?
| Code: |
alloc(newmem,256) //2kb should be enough
alloc(temp,4)
label(returnhere)
...
|
and replace every 00402fe4 with the word temp (perhaps combined with registersymbol so you can find it in other scripts as well)
anyhow, if you insist on using a read only address to store the value on, add the line "Fullaccess(00402fe4,4)"
that'll make sure the region that address is in will be writable
also, kinda unrelated, but I recommend changing address like 0330eee7 to modulename+offset notations, next time the game restarts those addresses will be different
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| 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
|
|