View previous topic :: View next topic |
Author |
Message |
vnlagrla Cheater
Reputation: 0
Joined: 10 Apr 2011 Posts: 33
|
Posted: Sun Dec 04, 2011 9:10 pm Post subject: asm help |
|
|
I need to store a pointer.
the code that writes to my value is mov ecx,[ebx+eax+0C]
so how would I do this since I can't do mov [40286008],ebx+eax
I know I suck at assembly but this would help me out a lot. thanks in advance
|
|
Back to top |
|
 |
Stylo Grandmaster Cheater Supreme
Reputation: 3
Joined: 16 May 2007 Posts: 1073 Location: Israel
|
Posted: Mon Dec 05, 2011 12:21 am Post subject: |
|
|
Just store your address at the register and move the value to it
Code: |
Mov edx,40286008
mov ecx,[ebx+eax]
mov [edx],ecx
|
_________________
Stylo |
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25793 Location: The netherlands
|
Posted: Mon Dec 05, 2011 9:20 am Post subject: |
|
|
I'd rather do:
Code: |
push eax
lea eax,[ebx+eax] //get the result of EBX+EAX and store it into eax
mov [40286008],eax
pop eax
|
_________________
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 |
|
 |
STN I post too much
Reputation: 43
Joined: 09 Nov 2005 Posts: 2676
|
Posted: Mon Dec 05, 2011 9:46 am Post subject: |
|
|
I am kind of hurt seeing the post here since you pmed me on deviated as well and i took the time to reply so detailed to you thinking you only asked me.
I posted the same solution as DB but giving more details. Wouldn't have if i knew you posted here as well since time is a bitch.
_________________
|
|
Back to top |
|
 |
|