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 


Math in MASM
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Uzeil
Moderator
Reputation: 6

Joined: 21 Oct 2006
Posts: 2411

PostPosted: Mon Jun 18, 2007 4:19 pm    Post subject: Reply with quote

But that's only because each bit is another power of 2 as binary is base of 2 Razz

But the restriction is true here. I tried puttin in "lea eax,[eax*5]" and it automatically switched to my example earlier of "lea eax,[eax+eax*4]". So I tried "lea eax,[eax*7]" as in my 2 line example, and it says "invalid scale". Razz

_________________


Mini Engine v3.0
Mipla v1.0

Reposted old threads out of the MS section.
Back to top
View user's profile Send private message
Nemexia55
Expert Cheater
Reputation: 0

Joined: 28 Jan 2014
Posts: 160

PostPosted: Wed Feb 19, 2014 2:22 am    Post subject: Reply with quote

Hi can you please say who can i use mul?
because i read somewhere that mul [ebx+00000480] will do this:
[ebx+00000480] * eax
and when i do mul [ebx+00000480],15 AA says it wont compile please help!

_________________
Back to top
View user's profile Send private message
Freiza
Grandmaster Cheater
Reputation: 22

Joined: 28 Jun 2010
Posts: 662

PostPosted: Wed Feb 19, 2014 5:02 am    Post subject: Reply with quote

Nemexia55 wrote:
Hi can you please say who can i use mul?
because i read somewhere that mul [ebx+00000480] will do this:
[ebx+00000480] * eax
and when i do mul [ebx+00000480],15 AA says it wont compile please help!


Code:
mov eax,15
mul [ebx+00000480]


there is no instruction like
mul [ebx+480],15

_________________
Back to top
View user's profile Send private message Send e-mail
Nemexia55
Expert Cheater
Reputation: 0

Joined: 28 Jan 2014
Posts: 160

PostPosted: Wed Feb 19, 2014 7:12 am    Post subject: Reply with quote

Freiza wrote:

Code:
mov eax,15
mul [ebx+00000480]


there is no instruction like
mul [ebx+480],15

this code's function is: eax=eax*[ebx+00000480]
not: [ebx+00000480]=eax*[ebx+00000480]
any way thank you! Wink

_________________
Back to top
View user's profile Send private message
Freiza
Grandmaster Cheater
Reputation: 22

Joined: 28 Jun 2010
Posts: 662

PostPosted: Thu Feb 20, 2014 5:52 am    Post subject: Reply with quote

Nemexia55 wrote:
Freiza wrote:

Code:
mov eax,15
mul [ebx+00000480]


there is no instruction like
mul [ebx+480],15

this code's function is: eax=eax*[ebx+00000480]
not: [ebx+00000480]=eax*[ebx+00000480]
any way thank you! Wink


The result is stored in EDX:EAX

visit this link:

http://x86.renejeschke.de/html/file_module_x86_id_210.html

_________________
Back to top
View user's profile Send private message Send e-mail
Nemexia55
Expert Cheater
Reputation: 0

Joined: 28 Jan 2014
Posts: 160

PostPosted: Thu Feb 20, 2014 8:43 am    Post subject: Reply with quote

You mean it isn't the thing that i said?
_________________
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 programming All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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