Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[HELP] How to add a value (not offset) to an adress [HELP]

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

Joined: 02 Sep 2011
Posts: 1055
Location: 0x90

PostPosted: Mon Feb 13, 2023 12:09 am    Post subject: Reply with quote

What you're asking is not possible. You will have to add more instructions like the add you mentioned. If you're trying to add a float value then add won't work because that's for integer (whole number) values only.

addss - Add float value (scalar-single)
addsd - Add double value (scalar-double)
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 140

Joined: 06 Jul 2014
Posts: 4301

PostPosted: Mon Feb 13, 2023 1:29 am    Post subject: Reply with quote

Add also works on registers:
Code:
mov eax,[address]
add eax,5

`add` only works for integers. Use `addss` / `addsd` for floats / doubles respectively along with xmm registers.
Code:
movss xmm0,[address]
addss xmm0,[valueAddr]

valueAddr:
  dd (float)5.0
Note `addss` / `addsd` can't take an immediate as an argument. The generally accepted way of working around this is to store the value to add into memory and reference the address it's stored at.
_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
JamesPardo
How do I cheat?
Reputation: 0

Joined: 07 Mar 2023
Posts: 1

PostPosted: Fri Mar 17, 2023 12:27 am    Post subject: Reply with quote

Thanks for helping me out as well and if I still face any issue, I will message here.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites