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 


Clarification on x86 statements

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Aviar³
Grandmaster Cheater
Reputation: 50

Joined: 03 Jan 2008
Posts: 655
Location: Canada

PostPosted: Fri Apr 04, 2008 3:18 pm    Post subject: Clarification on x86 statements Reply with quote

I need some clarification on a couple of x86 Assembly Machine Language commands and their purposes. Any help (even reasonable random guesses) are appreciated. All code below fallows NASM format.

Xor (Exclusive or):

Code:
xor eax, eax


Push:

Code:
push eax


Pop:

Code:
pop eax


lea (Load effective address):

Code:
Lea eax,[dsi+4]


P.S. In case anyone is wondering, I know eax is a register. (General Purpose, 32 bit)

_________________
This is the inception of deception, checking the depth of your perception.
Back to top
View user's profile Send private message
Aikos
Cheater
Reputation: 0

Joined: 26 Nov 2007
Posts: 47

PostPosted: Sat Apr 05, 2008 6:20 am    Post subject: Reply with quote

xor eax,eax is equal to mov eax,0, but costs 2 bytes instead of 5.
push and pop are functions used to add and remove data on a stack, and I suggest you to check what a stack is if you don't know what's happening.
As for lea, I have no ideas how exactly it calculates the effective address. You might need to find help from someone else.
Back to top
View user's profile Send private message
Psy
Grandmaster Cheater Supreme
Reputation: 1

Joined: 27 Mar 2008
Posts: 1366

PostPosted: Sat Apr 05, 2008 7:25 am    Post subject: Reply with quote

Brief explanation of LEA
Back to top
View user's profile Send private message
Aviar³
Grandmaster Cheater
Reputation: 50

Joined: 03 Jan 2008
Posts: 655
Location: Canada

PostPosted: Sat Apr 05, 2008 1:11 pm    Post subject: Reply with quote

Thank you very much. Appreciate the help.
_________________
This is the inception of deception, checking the depth of your perception.
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