73
Chapter 3 Functions
3.2 Functions
Argument of function
[ Instruction Code/Number of Cycles ]
Page=178
EXIT and Deallocate stack frame
[ Description Example ]
[ Syntax ]
EXITD
[ Related Instructions ]
ENTER
EXITD
EXITD
[ Operation ]
SP
FB
FB
M(SP)
SP
SP + 2
PC
ML
M(SP)
SP
SP + 2
PC
H
M(SP)
SP
SP + 1
[ Function ]
EXITD
Deallocate stack frame
• This instruction deallocates the stack frame and exits from the subroutine.
• Use this instruction in combination with the ENTER instruction.
• The diagrams below show the stack area status before and after the EXITD instruction is executed
at the end of a subroutine in which an ENTER instruction was executed.
[ Flag Change ]
U
I
O
B
S
Z
D
C
Flag
Change
FB (L)
FB (H)
Return address (L)
Return address (M)
Return address (H)
Argument of function
Auto variable area
SP
FB
SP
Direction in which
address increases
Before instruction execution
After instruction execution
Содержание R8C/Tiny Series
Страница 50: ...Chapter 3 Functions 3 1 Guide to This Chapter 3 2 Functions...
Страница 151: ...134 Chapter 3 Functions 3 2 Functions Blank for page layout...
Страница 152: ...Chapter 4 Instruction Code Number of Cycles 4 1 Guide to This Chapter 4 2 Instruction Code Number of Cycles...
Страница 278: ...Chapter 6 Calculation Number of Cycles 6 1 Instruction queue buffer...
Страница 287: ...Glossary 1 Glossary Technical terms used in this software manual are explained below They are good in this manual only...
Страница 291: ...Symbol 1 Table of symbols Symbols used in this software manual are explained below They are good in this manual only...
Страница 295: ...REVISION HISTORY R8C Tiny Series SOFTWARE MANUAL Rev Date Description Page Summary B 1 1 00 Jun 19 03 First Edition...
Страница 297: ...R8C Tiny Series Software Manual 2 6 2 Ote machi Chiyoda ku Tokyo 100 0004 Japan...