English
Language : 

CC78K4 Datasheet, PDF (341/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language
CHAPTER 11 EXTENDED FUNCTIONS
Interrupt Functions
#pragma vect
#pragma interrupt
Table 11-26. Save/Restore Area When Interrupt Function Is Used
Save/Restore Area
Register used
All registers
saddr2 area for register variable used
Entire saddr2 area for argument/auto
variable of norec function
NO
BANK
×
×
×
×
Function Called
Without -QR
With -QR
Stack RBn Stack RBn
×
×
×
×
{
×
{
×
×
×
{
{
×
×
{
{
Function Not Called
Without -QR
With -QR
Stack RBn Stack RBn
{
×
{
×
×
×
×
×
×
×
{
{
×
×
×
×
Stack: Use of stack is specified.
RBn: Register bank is specified.
{: Saved
×: Not saved
Caution If there is an ASM statement in an interrupt function, and if the area reserved for registers of the
compiler is used in that ASM statement, the area must be saved by the user.
EFFECT
• Interrupt functions can be described at the C source level.
• Because the register bank can be changed, codes that save the registers are not output; therefore, object
codes can be shortened and program execution speed can be improved.
• You do not have to be aware of the addresses of the vector table to recognize an interrupt request name.
User’s Manual U15556EJ1V0UM
341