View previous topic :: View next topic |
Author |
Message |
lentia How do I cheat? Reputation: 0
Joined: 15 Oct 2018 Posts: 4
|
Posted: Mon Oct 15, 2018 1:37 pm Post subject: how to load value to xmm register? |
|
|
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 |
|
|
TheyCallMeTim13 Wiki Contributor Reputation: 50
Joined: 24 Feb 2017 Posts: 976 Location: Pluto
|
Posted: Mon Oct 15, 2018 3:32 pm Post subject: |
|
|
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 |
|
|
lentia How do I cheat? Reputation: 0
Joined: 15 Oct 2018 Posts: 4
|
Posted: Mon Oct 15, 2018 4:53 pm Post subject: |
|
|
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)
|
|
Back to top |
|
|
|