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 


How to subtract a value?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
sanduk
How do I cheat?
Reputation: 0

Joined: 18 May 2017
Posts: 9

PostPosted: Thu May 18, 2017 2:17 pm    Post subject: How to subtract a value? Reply with quote

Friends, I need some help.

There is a value of 23.5 (float) and I need to subtract 3.5 so that the value is 20.0

Originalcode:
Movss xmm1, [rdi + 000003EC]


I can change the value to 20

Newmem:
Mov [rdi + 000003EC], (float) 20.0

But I want to decrease 3 instead of changing value ...

Can someone help me?
Back to top
View user's profile Send private message
STN
I post too much
Reputation: 42

Joined: 09 Nov 2005
Posts: 2672

PostPosted: Thu May 18, 2017 2:40 pm    Post subject: Reply with quote

Learn fpu instructions

http://www.website.masmforum.com/tutorials/fptute/

_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
Back to top
View user's profile Send private message
sanduk
How do I cheat?
Reputation: 0

Joined: 18 May 2017
Posts: 9

PostPosted: Thu May 18, 2017 6:34 pm    Post subject: Reply with quote

If you gave me an example I would get a Evaluation 10
Back to top
View user's profile Send private message
YoucefHam
Cheater
Reputation: 5

Joined: 19 Mar 2015
Posts: 39
Location: Algeria

PostPosted: Fri May 19, 2017 12:42 am    Post subject: Reply with quote

Code:

//create variable
alloc(var,100)
registersymbol(var)
//give it a value
var:
dd (float)3

code:
  movss xmm1,[rdi+3EC]
  //this is how to sub 3 from your address
  subss xmm1,[var]
  //addss to add
  movss [rdi+3EC],xmm1
Back to top
View user's profile Send private message Send e-mail
sanduk
How do I cheat?
Reputation: 0

Joined: 18 May 2017
Posts: 9

PostPosted: Sat May 20, 2017 12:16 pm    Post subject: Reply with quote

Worked perfectly !!!

Thank you very much !

YoucefHam wrote:
Code:

//create variable
alloc(var,100)
registersymbol(var)
//give it a value
var:
dd (float)3

code:
  movss xmm1,[rdi+3EC]
  //this is how to sub 3 from your address
  subss xmm1,[var]
  //addss to add
  movss [rdi+3EC],xmm1
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