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 


how to load value to xmm register?

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

Joined: 15 Oct 2018
Posts: 2

PostPosted: Mon Oct 15, 2018 1:37 pm    Post subject: how to load value to xmm register? Reply with quote

Hi.
im using auto assemble tool to create code injection. where original code is:
Code:
subss xmm1,xmm0
maxss xmm1,[game.exe+1C66B4]

i want to replace it by somthing like this:
Code:
subss xmm1, 0
maxss xmm1,[game.exe+1C66B4]

but since first line is impossible, i need to allocate memory for value and write xmm0 register from memory
question is how to allocate memory for value and write it to xmm0 ?
Back to top
View user's profile Send private message
TheyCallMeTim13
Wiki Contributor
Reputation: 24

Joined: 24 Feb 2017
Posts: 733
Location: 'Merica

PostPosted: Mon Oct 15, 2018 3:32 pm    Post subject: Reply with quote

Subtracting zero from a number basically does nothing, so why not just NOP it?
Or use "xorps xmm0,xmm0" to zero the XMM0 registry, but you'll likely need a hook for that.

And you'll need to say what language you want to use to allocate the memory.

For example, in CE AA it's just "alloc".
https://wiki.cheatengine.org/index.php?title=Auto_Assembler:alloc

_________________
Back to top
View user's profile Send private message
lentia
How do I cheat?
Reputation: 0

Joined: 15 Oct 2018
Posts: 2

PostPosted: Mon Oct 15, 2018 4:53 pm    Post subject: Reply with quote

TheyCallMeTim13 wrote:
Subtracting zero from a number basically does nothing, so why not just NOP it?

You are totally right.

TheyCallMeTim13 wrote:

For example, in CE AA it's just "alloc".
https ://wiki .cheatengine.org/index.php?title=Auto_Assembler:alloc

Thanks. That what I need.

Code:
mov eax, 0x41200000
movd xmm0, eax

decimal 10 - float coding bits looks like 0x41200000

check online converter I found
f..k this forum rules.
(can't pos url) Evil or Very Mad
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 programming 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