Renesas RL78/G1P Hardware User Manual page 82

16-bit single-chip microcontroller
Hide thumbs Also See for RL78/G1P:
Table of Contents

Advertisement

RL78/G1P
RETI, RETB
<1>
Instruction code
OP-code
Stack addressing is specified <1>.
The contents of addresses SP, SP + 1, SP + 2, and SP + 3 are
stored in PC bits 7 to 0, 15 to 8, 19 to 16, and the PSW, respectively
<2>.
The value of SP <3> is increased by four.
R01UH0895EJ0100 Rev.1.00
Nov 29, 2019
Figure 3-37. Example of RETI, RETB
PSW
SP
<1>
<3>
SP
PC
CHAPTER 3 CPU ARCHITECTURE
SP+4
SP+3
(SP+3)
SP+2
(SP+2)
SP+1
(SP+1)
SP
(SP)
<2>
Memory
Stack
area
F0000H
63

Advertisement

Table of Contents
loading

Table of Contents