
01-11-2008, 19:11
|
|
|
|
חבר מתאריך: 19.10.07
הודעות: 65
|
|
כמובן..
ENTER וLEAVE שתיהן עושות אותן פעולות:
ENTER:
לעומת:
קוד:
push ebp ; pushes the ebp to the stack
mov ebp, esp ; the ebp is moved to the esp
sub esp, 10 ; allocates 10 bytes
LEAVE:
לעומת:
קוד:
mov esp, ebp ; esp is now back to its original spot before the function was called, or: add esp, 10
pop ebp ; we no longer need this since we are leaving the function
נערך לאחרונה ע"י eXeCuTeR+ בתאריך 01-11-2008 בשעה 19:13.
|