AOB injection, dealing with floats/doubles

Anything Cheat Engine related, bugs, suggestions, helping others, etc..
Post Reply
seergaze
Novice Cheater
Novice Cheater
Posts: 15
Joined: Fri Aug 24, 2018 6:38 pm
Reputation: 0

AOB injection, dealing with floats/doubles

Post 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?

aSwedishMagyar
Table Makers
Table Makers
Posts: 690
Joined: Mon Jul 06, 2020 3:19 am
Reputation: 1262

Re: AOB injection, dealing with floats/doubles

Post 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.

User avatar
LeFiXER
LeFixer
LeFixer
Posts: 489
Joined: Wed Mar 24, 2021 9:35 am
Reputation: 251

Re: AOB injection, dealing with floats/doubles

Post by LeFiXER »

After following aSwedishMagyar's advice. You can achieve what you want to do by using other registers also.

Post Reply

Who is online

Users browsing this forum: No registered users