English
Language : 

CC78K4 Datasheet, PDF (405/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language
CHAPTER 11 EXTENDED FUNCTIONS
Interrupt Handler for RTOS
#pragma rtos_interrupt ...
(Output object of compiler)
When -ML, -QV is specified (default)
@@BASE CSEG
_intp:
push
push
push
push
push
movw
movw
cmpw
bne
br
L0003;
pop
pop
pop
pop
pop
reti
BASE
whl
tde
uup
vvp
ax,bc,rp2,rp3
rp3,#01H
ax,!!_i
ax,rp3
$L0003
!!_ret_int
;Saves register
;Allocates RP3 to variable a Note
ax,bc,rp2,rp3
vvp
uup
tde
whl
;Restores register
@@VECT06
_@vect06:
DW
CSEG AT
_intp
0006H
Note When the -QV option is not specified, the securing/releasing codes of the local variables are output after
saving the register/before restoring the register, respectively.
User’s Manual U15556EJ1V0UM
405