Page 1 of 1

AOB injection, dealing with floats/doubles

Posted: Tue Jun 08, 2021 9:06 am
by seergaze
Hi very new user here, I need help dealing with floats

So in the following line, xmm0 is the attack damage of my character

Code: Select all

movss xmm0,[rax+00000120]
I want to make a pointer for a cheat table, I set up a symbol "attack" and try to move the address of xmm0 into it

Code: Select all

mov [attack],xmm0
But it doesnt work, i did some googling and its likely because xmm0 is a float value, can anyone help me work with floats?

Re: AOB injection, dealing with floats/doubles

Posted: Tue Jun 08, 2021 9:30 am
by aSwedishMagyar
Do you know what a single or double value is? Do you know why in the first instruction it uses movss and not mov? Find the answer to those questions and you will see why it doesn't work.