A-6 Stack Frame For Procedure C At Level 3 Called From B - Intel 80C186XL User Manual

Intel microprocessor user's manual
Table of Contents

Advertisement

BP
SP
Figure A-6. Stack Frame for Procedure C at Level 3 Called from B
LEAVE
LEAVE reverses the action of the most recent ENTER instruction. It collapses the last stack
frame created. First, LEAVE copies the current BP to the Stack Pointer, releasing the stack space
allocated to the current procedure. Second, LEAVE pops the old value of BP from the stack, to
return to the calling procedure's stack frame. A RET instruction will remove arguments stacked
by the calling procedure for use by the called procedure.
80C186 INSTRUCTION SET ADDITIONS AND EXTENSIONS
15
Old BP
BPM
BPM
BPM
BPA
BPA
BPM
BPA
BPB
BPB
BPM
BPA
BPC
0
Display C
Dynamic
Storage C
A1005-0A
A-7

Advertisement

Table of Contents
loading

This manual is also suitable for:

80c188xl

Table of Contents