![Intel ITANIUM ARCHITECTURE Скачать руководство пользователя страница 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
Содержание ITANIUM ARCHITECTURE
Страница 1: ......
Страница 7: ...402 Intel Itanium Architecture Software Developer s Manual Rev 2 3 ...
Страница 199: ...4 192 Volume 4 Base IA 32 Instruction Reference FWAIT Wait See entry for WAIT ...
Страница 269: ...4 262 Volume 4 Base IA 32 Instruction Reference LES Load Full Pointer See entry for LDS LES LFS LGS LSS ...
Страница 270: ...Volume 4 Base IA 32 Instruction Reference 4 263 LFS Load Full Pointer See entry for LDS LES LFS LGS LSS ...
Страница 273: ...4 266 Volume 4 Base IA 32 Instruction Reference LGS Load Full Pointer See entry for LDS LES LFS LGS LSS ...
Страница 288: ...Volume 4 Base IA 32 Instruction Reference 4 281 LSS Load Full Pointer See entry for LDS LES LFS LGS LSS ...
Страница 352: ...Volume 4 Base IA 32 Instruction Reference 4 345 ROL ROR Rotate See entry for RCL RCR ROL ROR ...
Страница 368: ...Volume 4 Base IA 32 Instruction Reference 4 361 SHL SHR Shift Instructions See entry for SAL SAR SHL SHR ...
Страница 373: ...4 366 Volume 4 Base IA 32 Instruction Reference SIDT Store Interrupt Descriptor Table Register See entry for SGDT SIDT ...
Страница 589: ...4 582 Volume 4 IA 32 SSE Instruction Reference ...
Страница 590: ...Index Intel Itanium Architecture Software Developer s Manual Rev 2 3 Index ...
Страница 591: ...Index Intel Itanium Architecture Software Developer s Manual Rev 2 3 ...
Страница 603: ...INDEX Index 12 Index for Volumes 1 2 3 and 4 ...
Страница 604: ......