Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Need help to get base address from Assembly script

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
SMagic
How do I cheat?
Reputation: 0

Joined: 03 Jan 2009
Posts: 6

PostPosted: Tue Aug 02, 2016 2:30 am    Post subject: Need help to get base address from Assembly script Reply with quote

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
View user's profile Send private message
predprey
Master Cheater
Reputation: 24

Joined: 08 Oct 2015
Posts: 486

PostPosted: Tue Aug 02, 2016 2:37 am    Post subject: Reply with quote

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
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25830
Location: The netherlands

PostPosted: Tue Aug 02, 2016 2:38 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
SMagic
How do I cheat?
Reputation: 0

Joined: 03 Jan 2009
Posts: 6

PostPosted: Tue Aug 02, 2016 3:36 am    Post subject: Reply with quote

Thanks, I fixed it.
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Tue Aug 02, 2016 10:56 am    Post subject: Reply with quote

What is this, an emulator?
Back to top
View user's profile Send private message
SMagic
How do I cheat?
Reputation: 0

Joined: 03 Jan 2009
Posts: 6

PostPosted: Tue Aug 02, 2016 1:36 pm    Post subject: Reply with quote

++METHOS wrote:
What is this, an emulator?


PC game, Knights and Merchants - The Peasants Rebellion
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites