English
Language : 

CC78K4 Datasheet, PDF (406/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language
CHAPTER 11 EXTENDED FUNCTIONS
Interrupt Handler for RTOS
#pragma rtos_interrupt ...
(b) When the stack change is specified
(C source)
#pragma rtos_interrupt INTP0 intp sp=buff+10
int I;
unsigned char buff[10];
extern unsigned short TaskID1;
void intp () {
int a;
a = 1;
if (i == 1) {
ret_wup (&TaskID1);
}
}
(Output object of compiler)
When -ML, -QV is specified (default)
@@BASE CSEG
_intp :
push
push
push
push
push
movg
movg
push
movw
movw
cmpw
bne
movg
BASE
whl
tde
uup
vvp
ax,bc,rp2,rp3
whl,sp
sp,#_buff+10
whl
rp3,#01H
ax,!!_;
ax,rp3
$L0003
uup,#_TaskID1
;Saves register
;Changes stack pointer
;Allocates RP3 to variable a Note
Note When the -QV option is not specified, the securing/releasing codes of the local variable area are output.
406
User’s Manual U15556EJ1V0UM