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: 283
Joined: Sat Dec 16, 2017 4:46 pm
Reputation: 4

How to move value into XMM register??

Post by marek1957 » Thu May 03, 2018 7:59 pm

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
Table Makers
Table Makers
Posts: 304
Joined: Thu Aug 24, 2017 6:09 pm
Reputation: 2

How to move value into XMM register??

Post by hysspy » Thu May 03, 2018 8:23 pm

[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: 283
Joined: Sat Dec 16, 2017 4:46 pm
Reputation: 4

How to move value into XMM register??

Post by marek1957 » Thu May 03, 2018 11:18 pm

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

DrummerIX
RCE Fanatics
RCE Fanatics
Posts: 1106
Joined: Wed Mar 22, 2017 6:15 pm
Reputation: 595

How to move value into XMM register??

Post by DrummerIX » Fri May 04, 2018 12:27 am

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.

User avatar
TheyCallMeTim13
Administration
Administration
Posts: 980
Joined: Fri Mar 03, 2017 12:31 am
Reputation: 154
Contact:

How to move value into XMM register??

Post by TheyCallMeTim13 » Fri May 04, 2018 12:31 am

[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 TheyCallMeTim13 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