English
Language : 

CC78K0S Datasheet, PDF (353/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
CHAPTER 11 EXTENDED FUNCTIONS
Interrupt Functions
#pragma DI
#pragma EI
<To output DI and EI after and before preprocessing/postprocessing>
(C source 2)
#pragma DI
#pragma EI
void main ( )
{
{
DI ( );
function body
EI ( );
}
}
(Output object of compiler)
_main:
preprocessing
di
function body
ei
post-processing
ret
COMPATIBILITY
<From another C compiler to this C compiler>
• The C source program need not be modified if interrupt functions are not used at all.
• To change an ordinary function to an interrupt function, modify the program according to the procedure
described in USAGE above.
<From this C compiler to another C compiler>
• DI and EI can be used as ordinary function names (example: #ifdef_ _K0S_ _ ... #endif) by deleting the
#pragma DI and #pragma EI directives or delimiting them with #ifdef.
• To use an ordinary function as an interrupt function, modify the program according to the specifications of
each compiler.
User’s Manual U14872EJ1V0UM
353