View previous topic :: View next topic |
Author |
Message |
sanduk How do I cheat? Reputation: 0
Joined: 18 May 2017 Posts: 9
|
Posted: Thu May 18, 2017 2:17 pm Post subject: How to subtract a value? |
|
|
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 |
|
|
STN I post too much Reputation: 42
Joined: 09 Nov 2005 Posts: 2672
|
|
Back to top |
|
|
sanduk How do I cheat? Reputation: 0
Joined: 18 May 2017 Posts: 9
|
Posted: Thu May 18, 2017 6:34 pm Post subject: |
|
|
If you gave me an example I would get a Evaluation 10
|
|
Back to top |
|
|
YoucefHam Cheater Reputation: 5
Joined: 19 Mar 2015 Posts: 39 Location: Algeria
|
Posted: Fri May 19, 2017 12:42 am Post subject: |
|
|
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 |
|
|
sanduk How do I cheat? Reputation: 0
Joined: 18 May 2017 Posts: 9
|
Posted: Sat May 20, 2017 12:16 pm Post subject: |
|
|
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 |
|
|
|