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 


Auto Assambler Multiply value

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

Joined: 08 Sep 2011
Posts: 21

PostPosted: Wed Sep 28, 2011 1:04 pm    Post subject: Auto Assambler Multiply value Reply with quote

Hi, As the title say, how do you multiply a Value in auto assembler.
an example: add [esi+00000778],ebx
In the above example I would like to multiply and add value with say 10. So I want to get 10 times more that what i get with the above example.

Thank you!
Back to top
View user's profile Send private message
haunted5
Cheater
Reputation: 1

Joined: 23 Aug 2011
Posts: 35

PostPosted: Wed Sep 28, 2011 6:39 pm    Post subject: Reply with quote

Hi,

I'm not sure which instruction is best but i normally use 'imul' for 4byte values

An Example:

push eax
mov eax,10
imul ebx,eax
pop eax


Last edited by haunted5 on Wed Sep 28, 2011 7:54 pm; edited 1 time in total
Back to top
View user's profile Send private message
Gestalt
Newbie cheater
Reputation: 0

Joined: 08 Sep 2011
Posts: 21

PostPosted: Wed Sep 28, 2011 7:26 pm    Post subject: Reply with quote

Thank you, You really helped me there. I have thought on this simple task for some time now. It appeared I gotten it all wrong, I wrote [edx],10 all the time, no wonder my programs crashed.
I wonder if this will work with float data types as well. In my case it was needed for 4 byte. I will come back if I ever try this on float data type.
Back to top
View user's profile Send private message
haunted5
Cheater
Reputation: 1

Joined: 23 Aug 2011
Posts: 35

PostPosted: Wed Sep 28, 2011 7:53 pm    Post subject: Reply with quote

Nice to know you got it workin,

For Floats you would have to load the value to be multiplied and the multiplier onto the stack and use fmul to multiply them. Look up its usage on the net and make sure you pop any extra values you put onto the stack.
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