"Robert I. Eachus" wrote in message news:KOadnc3XCbaleZvcRVn-qQ@comcast.com... ... > The AMD manual referenced above gives the example code to do this on > page 128 (in Section 5.13): > > prologue: > push ebp > mov ebp, esp > sub esp, SIZE_OF_LOCALS ; Size of local variables > and esp, �8 > ... ; Push registers that need to be preserved. > > epilogue: ; Pop register that needed to be preserved. > leave > ret "Leave" used to be one of the instructions that Intel told you to avoid, although they were rather ambigious about it. Anyway, we put EBP at the bottom of the frame, so "leave" doesn't work. Randy.