| View previous topic :: View next topic |
| Author |
Message |
Aviar³ Grandmaster Cheater
Reputation: 50
Joined: 03 Jan 2008 Posts: 655 Location: Canada
|
Posted: Fri Apr 04, 2008 3:18 pm Post subject: Clarification on x86 statements |
|
|
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):
Push:
Pop:
lea (Load effective address):
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 |
|
 |
Aikos Cheater
Reputation: 0
Joined: 26 Nov 2007 Posts: 47
|
Posted: Sat Apr 05, 2008 6:20 am Post subject: |
|
|
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 |
|
 |
Psy Grandmaster Cheater Supreme
Reputation: 1
Joined: 27 Mar 2008 Posts: 1366
|
|
| Back to top |
|
 |
Aviar³ Grandmaster Cheater
Reputation: 50
Joined: 03 Jan 2008 Posts: 655 Location: Canada
|
Posted: Sat Apr 05, 2008 1:11 pm Post subject: |
|
|
Thank you very much. Appreciate the help.
_________________
This is the inception of deception, checking the depth of your perception.
 |
|
| Back to top |
|
 |
|