English
Language : 

HD64F3337YCP16V Datasheet, PDF (116/749 Pages) Renesas Technology Corp – Old Company Name in Catalogs and Other Documents
SP – 4
SP – 3
SP – 2
SP – 1
SP (R7)
Stack area
SP(R7)
SP + 1
SP + 2
SP + 3
SP + 4
CCR
CCR*
PCH
PCL
Even address
Before interrupt
is accepted
Pushed onto stack
After interrupt
is accepted
PCH: Upper byte of progam counter
PCL: Lower byte of progam counter
CCR: Condition code register
SP: Stack pointer
Notes: 1. The PC contains the address of the first instruction executed after return.
2. Registers must be saved and restored by word access at an even address.
* Ignored on return.
Figure 4.6 Usage of Stack in Interrupt Handling
The CCR is comprised of one byte, but when it is saved to the stack, it is treated as one word of
data. During interrupt processing, two identical bytes of CCR data are saved to the stack to create
one word of data. When the RTE instruction is executed to restore the value from the stack, the
byte located at the even address is loaded into CCR, and the byte located at the odd address is
ignored.
84