More about the Standard Entry Sequence

Posted by Mask on Stack Overflow See other posts from Stack Overflow or by Mask
Published on 2010-03-31T12:11:43Z Indexed on 2010/03/31 12:13 UTC
Read the original article Hit count: 339

quoted from here:

_function: 
    push ebp       ;store the old base pointer 
    mov ebp, esp   ;make the base pointer point to the current 
                   ;stack location – at the top of the stack is the  
                   ;old ebp, followed by the return address and then 
                   ;the parameters. 
    sub esp, x     ;x is the size, in bytes, of all 
                   ;"automatic variables" in the function 

What's stored in esp in the above code snippet?

© Stack Overflow or respective owner

Related posts about assembly

Related posts about calling-convention