| View previous topic :: View next topic |
| Author |
Message |
Uzeil Moderator
Reputation: 6
Joined: 21 Oct 2006 Posts: 2411
|
Posted: Mon Jun 18, 2007 4:19 pm Post subject: |
|
|
But that's only because each bit is another power of 2 as binary is base of 2
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".
_________________
|
|
| Back to top |
|
 |
Nemexia55 Expert Cheater
Reputation: 0
Joined: 28 Jan 2014 Posts: 160
|
Posted: Wed Feb 19, 2014 2:22 am Post subject: |
|
|
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 |
|
 |
Freiza Grandmaster Cheater
Reputation: 22
Joined: 28 Jun 2010 Posts: 662
|
Posted: Wed Feb 19, 2014 5:02 am Post subject: |
|
|
| 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 |
|
 |
Nemexia55 Expert Cheater
Reputation: 0
Joined: 28 Jan 2014 Posts: 160
|
Posted: Wed Feb 19, 2014 7:12 am Post subject: |
|
|
| 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!
_________________
|
|
| Back to top |
|
 |
Freiza Grandmaster Cheater
Reputation: 22
Joined: 28 Jun 2010 Posts: 662
|
Posted: Thu Feb 20, 2014 5:52 am Post subject: |
|
|
| 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!  |
The result is stored in EDX:EAX
visit this link:
http://x86.renejeschke.de/html/file_module_x86_id_210.html
_________________
|
|
| Back to top |
|
 |
Nemexia55 Expert Cheater
Reputation: 0
Joined: 28 Jan 2014 Posts: 160
|
Posted: Thu Feb 20, 2014 8:43 am Post subject: |
|
|
You mean it isn't the thing that i said?
_________________
|
|
| Back to top |
|
 |
|