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 


Is any chance make a multiplier with faddp

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
OswaldoAomine
Cheater
Reputation: 0

Joined: 07 Aug 2021
Posts: 38
Location: Yggdrasil

PostPosted: Tue Sep 06, 2022 2:42 pm    Post subject: Is any chance make a multiplier with faddp Reply with quote

Hello guys i try make a multiplier this attrib faddp but i don't any clue
Mostly games have fadd no faddp and no address please anyone how world with this attrib and how make the script for multiplier I verte thankful.greats


I try this
Push eax
Mov eax,[esi+000000054]
Imul eax,#2
Mov [eso+00000000054]
Pop eax
Jmp exit
But my number comeback to zero

_________________
English and spanish😁
Back to top
View user's profile Send private message
cooleko
Grandmaster Cheater
Reputation: 11

Joined: 04 May 2016
Posts: 717

PostPosted: Tue Sep 06, 2022 9:34 pm    Post subject: Reply with quote

Are you dealing with floating point or integers? Because your post indicated floating point and your code is using integers. a float X an int = garbage.
Back to top
View user's profile Send private message
panraven
Grandmaster Cheater
Reputation: 54

Joined: 01 Oct 2008
Posts: 941

PostPosted: Wed Sep 07, 2022 6:27 am    Post subject: Reply with quote

fpu work on its own fpu stack, where its stack top is the 'value to add' just before the instruction faddp.
You can just fmul [some_multiplier_address] with proper size of the 'some_multiplier_address''s value to scale the 'value to add'.
eg.
Code:

fmul   dword ptr[My_Multiplier]
faddp  dword ptr[esi+000000054] /// assume the original code
jmp    exit
My_Multiplier:
dd (float)2

_________________
- Retarded.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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