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 


How to multiply and divided in assemble

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
happyreadygo
Advanced Cheater
Reputation: 1

Joined: 14 Sep 2011
Posts: 87

PostPosted: Mon Aug 20, 2012 7:48 am    Post subject: How to multiply and divided in assemble Reply with quote

how can we multiply and divide a number in assemble? I search all the web but all only say about add , sub and little about lea , nothing say about divide .

However , I found something about using lea to mulitply.
If I want to multiply ecx by 2 , ecx = 0x1a0
I must using
Code:
 lea ecx,[ecx*2]

If I want to multiply ecx by 3 , ecx = 0x1a0
Code:
 lea ecx,[ecx+ecx*2]

I am still know not much about lea

Can someone show me an example of how to divide and multiply? are there any ceiling or floor when we divide the number?

* just found something interesting
Code:
mov edx,2
imul ecx,edx

this code multiply ecx by 2
Code:
imul ecx,2

but this code don't do anything and no eror.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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