| View previous topic :: View next topic |
| Author |
Message |
SMagic How do I cheat?
Reputation: 0
Joined: 03 Jan 2009 Posts: 6
|
Posted: Tue Aug 02, 2016 2:30 am Post subject: Need help to get base address from Assembly script |
|
|
How can I get the address from "ecx+eax*2+03" and put in p_address?
I tried this one, but it couldn't compile.
| Code: | code:
mov [p_address],ecx+eax*2+03
mov [ecx+eax*2+03],dx
jmp return |
|
|
| Back to top |
|
 |
predprey Master Cheater
Reputation: 24
Joined: 08 Oct 2015 Posts: 486
|
Posted: Tue Aug 02, 2016 2:37 am Post subject: |
|
|
| Code: | push ebx
lea ebx,[ecx+eax*2+3]
mov [p_address],ebx
pop ebx |
| Code: | mul [p_address],eax,2
add [p_address],ecx
add [p_address],3 |
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25830 Location: The netherlands
|
Posted: Tue Aug 02, 2016 2:38 am Post subject: |
|
|
| Code: |
push eax
lea eax,[ecx+eax*2+03]
mov [p_address],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 |
|
 |
SMagic How do I cheat?
Reputation: 0
Joined: 03 Jan 2009 Posts: 6
|
Posted: Tue Aug 02, 2016 3:36 am Post subject: |
|
|
| Thanks, I fixed it.
|
|
| Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Tue Aug 02, 2016 10:56 am Post subject: |
|
|
| What is this, an emulator?
|
|
| Back to top |
|
 |
SMagic How do I cheat?
Reputation: 0
Joined: 03 Jan 2009 Posts: 6
|
Posted: Tue Aug 02, 2016 1:36 pm Post subject: |
|
|
| ++METHOS wrote: | | What is this, an emulator? |
PC game, Knights and Merchants - The Peasants Rebellion
|
|
| Back to top |
|
 |
|