Renesas R8C/Tiny Series Software Manual page 91

16-bit single-chip microcomputer
Hide thumbs Also See for R8C/Tiny Series:
Table of Contents

Advertisement

Chapter 3
Functions
EXITD
[ Syntax ]
EXITD
[ Operation ]
SP
FB
SP
PC
ML
SP
PC
H
SP
[ Function ]
• This instruction deallocates a 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.
Before instruction execution
SP
Auto variable area
FB
Return address (L)
Return address (M)
Return address (H)
Argument of function
[ Flag Change ]
Flag
U
I
O
Change
[ Description Example ]
EXITD
[ Related Instructions ]
Rev.2.00 Oct 17, 2005
REJ09B0001-0200
Deallocate stack frame
EXIT and Deallocate stack frame
FB
M(SP)
SP
+
2
M(SP)
SP
+
2
M(SP)
SP
+
1
Direction in which
FB (L)
address increases
FB (H)
B
S
Z
D
C
ENTER
page 73 of 263
[ Instruction Code/Number of Cycles ]
After instruction execution
Argument of function
SP
3.2 Functions
EXITD
Page: 178

Advertisement

Table of Contents
loading

Table of Contents