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 


Please help me regarding movsxd

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

Joined: 10 Jun 2022
Posts: 4

PostPosted: Sun Jun 12, 2022 2:48 am    Post subject: Please help me regarding movsxd Reply with quote

I guess i found the line where my exp is being passed.

movsxd rcx,dword ptr [rsp+000000F8] <---the rsp+F8 offset is the one holding the xp value i obtain and its pass to rcx.

But my problem is once i do the injection movsxd rcx , (double)1000.00 im getting an error that it cant be compiled.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 138

Joined: 06 Jul 2014
Posts: 4275

PostPosted: Sun Jun 12, 2022 11:55 am    Post subject: Reply with quote

`movsxd` moves some smaller data into a larger destination by sign-extending it.

First of all, `movsxd` should only be used on integers, so I very highly doubt it's a double. It's weird to store floating point data in general purpose registers anyway (memcpy being an exception).
Secondly, there are very few instructions that take 64-bit immediate values. `movsxd` isn't one of them.

Just use mov:
Code:
mov rcx,1000

If it doesn't work, make sure that instruction is only accessing the address you want.

_________________
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
Yajnos
How do I cheat?
Reputation: 0

Joined: 10 Jun 2022
Posts: 4

PostPosted: Sun Jun 12, 2022 7:34 pm    Post subject: Reply with quote

Thanks now its working i've been searching for 2 days on how to modify the movsxd i didn't know i can just replace it with mov rcx,(int)1000.
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