please dont rip this site
 LEAVE			    11001001

LEAVE—High Level Procedure Exit


Releases the stack frame set up by an earlier ENTER instruction. The LEAVE instruction copies the frame pointer (in the EBP register) into the stack pointer register (ESP), which releases the stack space allocated to the stack frame. The old frame pointer (the frame pointer for the calling procedure that was saved by the ENTER instruction) is then popped from the stack into the EBP register, restoring the calling procedure’s stack frame.

A RET instruction is commonly executed following a LEAVE instruction to return program control to the calling procedure.

See “Procedure Calls for Block-Structured Languages” in Chapter 6 of the Intel Architecture Software Developer’s Manual, Volume 1, for detailed information on the use of the ENTER and LEAVE instructions.


IF StackAddressSize = 32
    ESP « EBP;
  ELSE (* StackAddressSize = 16*)
    SP « BP;
IF OperandSize = 32
    EBP « Pop();
  ELSE (* OperandSize = 16*)
    BP « Pop();

Flags Affected


Protected Mode Exceptions

If the EBP register points to a location that is not within the limits of the current stack segment.
If a page fault occurs.


file: /Techref/intel/x86/inst/leave.htm, 1KB, , updated: 2006/9/8 07:58, local time: 2024/5/24 19:41,

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF=""> LEAVE&#151;High Level Procedure Exit</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.

Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?


Welcome to!


Welcome to!