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 


Complete Noob Question On Asm... LEA

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
dnsi0
I post too much
Reputation: 0

Joined: 04 Jan 2007
Posts: 2674

PostPosted: Wed Mar 25, 2009 8:47 am    Post subject: Complete Noob Question On Asm... LEA Reply with quote

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
View user's profile Send private message
Zerith
Master Cheater
Reputation: 1

Joined: 07 Oct 2007
Posts: 468

PostPosted: Wed Mar 25, 2009 8:59 am    Post subject: Reply with quote

It is used for computing addresses, for example
Code:

LEA EDX, [EAX+0C]

Is equivalent to:
Code:

MOV EDX, EAX
ADD EDX, 0C
Back to top
View user's profile Send private message MSN Messenger
arigity
Advanced Cheater
Reputation: 0

Joined: 03 Jul 2008
Posts: 65
Location: middle of nowhere.

PostPosted: Wed Mar 25, 2009 12:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
Nemexia55
Expert Cheater
Reputation: 0

Joined: 28 Jan 2014
Posts: 160

PostPosted: Tue Feb 11, 2014 6:36 am    Post subject: Reply with quote

can you help me with these??
what do these differ from each other?
jg and ja
jb and jl

_________________
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
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