![Intel ITANIUM ARCHITECTURE Manual Download Page 267](http://html.mh-extra.com/html/intel/itanium-architecture/itanium-architecture_manual_2073403267.webp)
4:260
Volume 4: Base IA-32 Instruction Reference
LEAVE—High Level Procedure Exit
Description
Executes a return from a procedure or group of nested procedures established by an
earlier ENTER instruction. The instruction copies the frame pointer (in the EBP register)
into the stack pointer register (ESP), releasing the stack space used by a procedure for
its local variables. The old frame pointer (the frame pointer for the calling procedure
that issued the ENTER instruction) is then popped from the stack into the EBP register,
restoring the calling procedure’s frame.
A RET instruction is commonly executed following a LEAVE instruction to return
program control to the calling procedure and remove any arguments pushed onto the
stack by the procedure being returned from.
Operation
IF StackAddressSize = 32
THEN
ESP
EBP;
ELSE (* StackAddressSize = 16*)
SP
BP;
FI;
IF OperandSize = 32
THEN
EBP
Pop();
ELSE (* OperandSize = 16*)
BP
Pop();
FI;
Flags Affected
None.
Additional Itanium System Environment Exceptions
Itanium Reg Faults NaT Register Consumption Abort.
Itanium Mem FaultsVHPT Data Fault, Nested TLB Fault, Data TLB Fault, Alternate Data
TLB Fault, Data Page Not Present Fault, Data NaT Page Consumption
Abort, Data Key Miss Fault, Data Key Permission Fault, Data Access
Rights Fault, Data Access Bit Fault, Data Dirty Bit Fault
Protected Mode Exceptions
#SS(0)
If the EBP register points to a location that is not within the limits of
the current stack segment.
Opcode
Instruction
Description
C9
LEAVE
Set SP to BP, then pop BP
C9
LEAVE
Set ESP to EBP, then pop EBP
Summary of Contents for ITANIUM ARCHITECTURE
Page 1: ......
Page 7: ...402 Intel Itanium Architecture Software Developer s Manual Rev 2 3 ...
Page 199: ...4 192 Volume 4 Base IA 32 Instruction Reference FWAIT Wait See entry for WAIT ...
Page 352: ...Volume 4 Base IA 32 Instruction Reference 4 345 ROL ROR Rotate See entry for RCL RCR ROL ROR ...
Page 589: ...4 582 Volume 4 IA 32 SSE Instruction Reference ...
Page 590: ...Index Intel Itanium Architecture Software Developer s Manual Rev 2 3 Index ...
Page 591: ...Index Intel Itanium Architecture Software Developer s Manual Rev 2 3 ...
Page 603: ...INDEX Index 12 Index for Volumes 1 2 3 and 4 ...
Page 604: ......