CodeKiller Advanced Cheater
Reputation: 0
Joined: 30 Jun 2009 Posts: 87
|
Posted: Tue Jan 01, 2013 12:01 am Post subject: ASM code strange behaviour |
|
|
Hello all,
Here a piece of code :
| Code: | newmem5:
push ecx
mov ecx, eax
add ecx, DC
mov [hull], ecx
pop ecx
originalcode5:
mov eax,[eax+000000DC]
jmp returnhere5 |
The strange thing is, when I use the hull address in the table the pointer is 0x100 lower than it should -compared to the eax+DC address ).
If the real address should be 012345 in the table it will be : 012245...
I have 4 times the same code (only the offset is changing) and for the 3 others it works fine.
I know I can just add myself the 100 offset or directly use the value and not the pointer but I want to make this thing clear.
Thanks !!!
|
|