|
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
aikoncwd Grandmaster Cheater Reputation: 23
Joined: 21 Dec 2012 Posts: 591 Location: Spain (Barcelona)
|
Posted: Wed Jul 16, 2014 7:00 am Post subject: Problem while copying complex address to User Defined Symbol |
|
|
Hi!
I have a problem with this instruction:
Code: | mov [esi+edi*4],edx |
esi+edi*4 is the base-pointer of my player structure. I want to create a UserDefinedSymbol, so I tried this:
Code: | globalalloc(pPlayer,4)
mov [pPlayer],esi+edi*4
mov [esi+edi*4],edx |
But this instruction can't be assembled. In other games I have the same scenario but with less complex address, like this:
Code: | mov [ebx+00000D14],eax |
So I only need to add:
Code: | globalalloc(pPlayer,4)
mov [pPlayer],ebx
mov [ebx+00000D14],eax |
This second example works very well, but I don't know how to deal with [esi+edi*4]
Any suggestions?
_________________
Hey Hitler
Test here your skill with CheatEngine, I coded a challenge for you. Try to beat it!
HERE |
|
Back to top |
|
|
Redouane Master Cheater Reputation: 3
Joined: 05 Sep 2013 Posts: 363 Location: Algeria
|
Posted: Wed Jul 16, 2014 7:16 am Post subject: Re: Problem while copying complex address to User Defined Sy |
|
|
AikonCWD wrote: | Hi!
I have a problem with this instruction:
Code: | mov [esi+edi*4],edx |
esi+edi*4 is the base-pointer of my player structure. I want to create a UserDefinedSymbol, so I tried this:
Code: | globalalloc(pPlayer,4)
mov [pPlayer],esi+edi*4
mov [esi+edi*4],edx |
|
Code: | globalalloc(pPlayer,4)
push eax
lea eax,[esi+edi*4]
mov [pPlayer],eax
mov [eax],edx
pop eax |
It should work
|
|
Back to top |
|
|
aikoncwd Grandmaster Cheater Reputation: 23
Joined: 21 Dec 2012 Posts: 591 Location: Spain (Barcelona)
|
Posted: Wed Jul 16, 2014 7:38 am Post subject: Re: Problem while copying complex address to User Defined Sy |
|
|
Redone wrote: | Code: | globalalloc(pPlayer,4)
push eax
lea eax,[esi+edi*4]
mov [pPlayer],eax
mov [eax],edx
pop eax |
It should work |
IT WORKS!!!
Thanks man!
_________________
Hey Hitler
Test here your skill with CheatEngine, I coded a challenge for you. Try to beat it!
HERE |
|
Back to top |
|
|
mgr.inz.Player I post too much Reputation: 218
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Thu Jul 17, 2014 4:31 am Post subject: |
|
|
Yes, for those always use LEA.
much easier than:
Code: | mov [pPlayer],edi
rol dword ptr [pPlayer],2
add dword ptr [pPlayer],esi
|
_________________
|
|
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
|
|