| View previous topic :: View next topic |
| Author |
Message |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Wed Mar 25, 2009 8:47 am Post subject: Complete Noob Question On Asm... LEA |
|
|
| what exactly does LEA do? I searched google and it told me it means Load Effective Address and I learned that it can be used for multiplication. But I never got what it does... T.T
|
|
| Back to top |
|
 |
Zerith Master Cheater
Reputation: 1
Joined: 07 Oct 2007 Posts: 468
|
Posted: Wed Mar 25, 2009 8:59 am Post subject: |
|
|
It is used for computing addresses, for example
Is equivalent to:
| Code: |
MOV EDX, EAX
ADD EDX, 0C
|
|
|
| Back to top |
|
 |
arigity Advanced Cheater
Reputation: 0
Joined: 03 Jul 2008 Posts: 65 Location: middle of nowhere.
|
Posted: Wed Mar 25, 2009 12:55 pm Post subject: |
|
|
load effective address, it gives you the address of something. ie lea eax, [ecx] will move the address of the value in ecx into eax. basically its mov eax, ecx
it is often used for quick calculations ie lea eax, [eax*6] will mov the value of eax times 6 into eax and lea eax, [eax+4] will move into eax, the value of eax + 4.
_________________
|
|
| Back to top |
|
 |
Nemexia55 Expert Cheater
Reputation: 0
Joined: 28 Jan 2014 Posts: 160
|
Posted: Tue Feb 11, 2014 6:36 am Post subject: |
|
|
can you help me with these??
what do these differ from each other?
jg and ja
jb and jl
_________________
|
|
| Back to top |
|
 |
|