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 


Teleport Cheat Adapting 32bit Script To 64bit ASM

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

Joined: 19 Jul 2009
Posts: 116
Location: UK

PostPosted: Sun Jan 21, 2024 9:35 am    Post subject: Teleport Cheat Adapting 32bit Script To 64bit ASM Reply with quote

Anyone know what registers and flags I need to push to the stack on my compare to jump to my key checking code?

Been out of the loop for a while I'm trying to adapt a 32bit ASM teleport script using GetAsyncKeyState checking if the key is up or down to a 64bit game?
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 140

Joined: 06 Jul 2014
Posts: 4300

PostPosted: Sun Jan 21, 2024 2:02 pm    Post subject: Reply with quote

If you're asking about calling conventions, see here:
https://learn.microsoft.com/en-us/cpp/build/x64-calling-convention?view=msvc-170

Back up all the volatile registers: rax, rcx, rdx, r8, r9, r10, and r11. Maybe include xmm0-xmm5 as well if the game is using those.

The stack needs to be aligned to 16 bytes prior to the call, and there needs to be at least 32 bytes of free space on the stack for the callee to use.

If you don't want to deal with that, try {$ccode} instead:
https://forum.cheatengine.org/viewtopic.php?t=618134

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
apocalypticx
Expert Cheater
Reputation: 4

Joined: 19 Jul 2009
Posts: 116
Location: UK

PostPosted: Mon Jan 22, 2024 8:41 am    Post subject: Reply with quote

OK thanks for the quick reply, what I was hoping was we could just push all 64bit registers and flags using single commands like in 32bit Asm but from my limited research it's not looking like that's been implemented which is a shame!

Also I've got the 64bit version working, thanks.
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