How to move value into XMM register??

Memory scanning, code injection, debugger internals and other gamemodding related discussion
Post Reply
marek1957
Expert Cheater
Expert Cheater
Posts: 155
Joined: Sat Dec 16, 2017 4:46 pm
Reputation: 4

How to move value into XMM register??

Post by marek1957 »

Hello People!

I have a problem, don't know how to make a working script.



I know that EAX is currently holding value. But I found that the instruction for eax is: [B]movd eax,xmm6[/B]. Does it mean that xmm6 which stored value is moving to EAX? If yes, how to write a correct script for moving value into XMM6 register?? I want to put a 4-byte value into XMM6 register.



I am waiting for your advices,

Thanks.

User avatar
hysspy
Expert Cheater
Expert Cheater
Posts: 149
Joined: Thu Aug 24, 2017 6:09 pm
Reputation: 101

How to move value into XMM register??

Post by hysspy »

[QUOTE="marek1957, post: 44494, member: 11389"]Hello People!

I have a problem, don't know how to make a working script.



I know that EAX is currently holding value. But I found that the instruction for eax is: [B]movd eax,xmm6[/B]. Does it mean that xmm6 which stored value is moving to EAX? If yes, how to write a correct script for moving value into XMM6 register?? I want to put a 4-byte value into XMM6 register.



I am waiting for your advices,

Thanks.[/QUOTE]

[USER=11389]@marek1957[/USER] : Have you read this?



To Read : [URL='https://forum.cheatengine.org/viewtopic.php?p=5572126']Click Me[/URL]

Full Search Result to read : [URL='https://www.google.com/search?q=cheat+engine+xmm+registers&ie=utf-8&oe=utf-8&client=firefox-b-ab']Click Me[/URL]

Good Luck and Have a nice day ;)
Last edited by hysspy on Thu Jan 01, 1970 12:00 am, edited 1 time in total.

marek1957
Expert Cheater
Expert Cheater
Posts: 155
Joined: Sat Dec 16, 2017 4:46 pm
Reputation: 4

How to move value into XMM register??

Post by marek1957 »

i read, still dont know how to put a value into xmm6 register

DrummerIX
ViP
ViP
Posts: 3227
Joined: Wed Mar 22, 2017 6:15 pm
Reputation: 3740

How to move value into XMM register??

Post by DrummerIX »

movss xmm6,[SomeMemory] puts the value of SomeMemory into xmm6 as a single scalar floating point.



xmm registers can also hold doubles, which you have to use movsd. xmm registers can hold other memory too, but those are the floating point operations on them to move something into them.

TimFun13
Expert Cheater
Expert Cheater
Posts: 1353
Joined: Fri Mar 03, 2017 12:31 am
Reputation: 7

How to move value into XMM register??

Post by TimFun13 »

[URL='https://wiki.cheatengine.org/index.php?title=Tutorial:CodeInjection_EditableValues#Working_with_Floats'][U]https://wiki.cheatengine.org/index.php?title=Tutorial:CodeInjection_EditableValues#Working_with_Floats[/U][/URL]



EDIT: Missed the MOVD part.

[U][URL]http://www.felixcloutier.com/x86/MOVD:MOVQ.html[/URL][/U]

[CODE=nasm]mov eax,64

movd xmm6,eax[/CODE]
Last edited by TimFun13 on Fri May 04, 2018 12:01 pm, edited 2 times in total.

Post Reply

Who is online

Users browsing this forum: No registered users