03.01.2015 Views

80C186EC/80C188EC Microprocessor User's Manual

80C186EC/80C188EC Microprocessor User's Manual

80C186EC/80C188EC Microprocessor User's Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

80C186 INSTRUCTION SET ADDITIONS AND EXTENSIONS<br />

15 0<br />

Old BP<br />

BPM<br />

BPM<br />

BPM<br />

BPA<br />

BPA<br />

BPM<br />

BPA<br />

BPB<br />

BP<br />

SP<br />

BPB<br />

BPM<br />

BPA<br />

BPC<br />

Display C<br />

Dynamic<br />

Storage C<br />

A1005-0A<br />

Figure A-6. Stack Frame for Procedure C at Level 3 Called from B<br />

LEAVE<br />

LEAVE reverses the action of the most recent ENTER instruction. It collapses the last stack<br />

frame created. First, LEAVE copies the current BP to the Stack Pointer, releasing the stack space<br />

allocated to the current procedure. Second, LEAVE pops the old value of BP from the stack, to<br />

return to the calling procedure's stack frame. A RET instruction will remove arguments stacked<br />

by the calling procedure for use by the called procedure.<br />

A-7

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!