Page 1 of 1

How to move value into XMM register??

Posted: Thu May 03, 2018 7:59 pm
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.

How to move value into XMM register??

Posted: Thu May 03, 2018 8:23 pm
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 ;)

How to move value into XMM register??

Posted: Thu May 03, 2018 11:18 pm
by marek1957
i read, still dont know how to put a value into xmm6 register

How to move value into XMM register??

Posted: Fri May 04, 2018 12:27 am
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.

How to move value into XMM register??

Posted: Fri May 04, 2018 12:31 am
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]