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 


Cheat Engine Forum Index
PostGo back to topic
panraven
Grandmaster Cheater
Reputation: 61
Joined: 01 Oct 2008
Posts: 958

PostPosted: Mon Jan 31, 2022 6:28 am    Post subject:

If there is a near memory that can store a float value -1,
Code:

...
movss    xmm0,[MinusOne] /// MinusOne stored (float)-1
mulss    xmm0,[speed_lmodifier]
addss    xmm0,[rdi+70]
movss    [rdi+70],xmm0
...

else may need an extra register
Code:

...
mov      eax,(float)-1
movd   xmm0,eax /// use rax & movq for double
mulss    xmm0,[speed_lmodifier]
addss    xmm0,[rdi+70]
movss    [rdi+70],xmm0
...

there should be other ways.
_________________
- Retarded.
Back to top
View user's profile Send private message
Post reviews:   Approve 1
Author Review
++METHOS
Review: Approve
Post reference:
ReviewPosted: Mon Jan 31, 2022 11:40 pm


Back to top
View user's profile Send private message
Display:  
Cheat Engine Forum Index


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites