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 


Assembler x64 and symbols.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
oLaudix
Expert Cheater
Reputation: 3

Joined: 25 Mar 2010
Posts: 138

PostPosted: Sat Jan 31, 2015 5:57 pm    Post subject: Assembler x64 and symbols. Reply with quote

I want to get pointer address to my registered symbol and work from there but usuall way
Code:
 mov [BaseVariables_],rcx
does not work (this instruction cant be compiled). What is the way to do this in 64 bit?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Sat Jan 31, 2015 6:32 pm    Post subject: Reply with quote

mov rax,basevariables_
mov [rax], rcx


alternatively, if your code is allocated nearby basevariables (nearby as within 2gb) then mov [basevariables], rcx will work too
you can specify near what location memory gets allocated with the 3th alloc parameter
tip: use the code injection template for an example

of course, if you do need to target different modules at the same time, then you will need to use the complex method

and remember, if you do not specify the address for a codecave nearby the origin, the jmp instruction can be 15 bytes long

_________________
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
oLaudix
Expert Cheater
Reputation: 3

Joined: 25 Mar 2010
Posts: 138

PostPosted: Sat Jan 31, 2015 7:38 pm    Post subject: Reply with quote

When i tried your solution i still got error about code not being injectable and instructions not being able to compile. Im starting to hate 64bit games -_- Also its just simple code created automaticly by Auto Assemble so nothing fancy. It compiles fine without mov rax,base_ line.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Sat Jan 31, 2015 8:53 pm    Post subject: Reply with quote

what is the error?

mov rax,base_ should work, assuming base_ is an actual defined symbol

_________________
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
oLaudix
Expert Cheater
Reputation: 3

Joined: 25 Mar 2010
Posts: 138

PostPosted: Sun Feb 01, 2015 7:38 am    Post subject: Reply with quote

Tried both ways and both times got same error:
- http://i.imgur.com/5SpN7Ku.png
- http://i.imgur.com/Sv3eWnY.png
I skipped pops and pushes in 2nd one to solely show the error.
All other code is automaticly generated by cheat engine i just added symbol.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Sun Feb 01, 2015 7:44 am    Post subject: Reply with quote

You're not defining base
_________________
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
oLaudix
Expert Cheater
Reputation: 3

Joined: 25 Mar 2010
Posts: 138

PostPosted: Sun Feb 01, 2015 10:50 am    Post subject: Reply with quote

Shit, I'm dumb ... thx for help.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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