Posted: Tue Sep 06, 2022 2:42 pm Post subject: Is any chance make a multiplier with faddp
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 _________________
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.
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
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