English
Language : 

CC78K0S Datasheet, PDF (494/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
APPENDIX B LIST OF SEGMENT NAMES
B.3 Example of C Source
#pragma INTERRUPT INTP0 inter
void inter (void) ;
const int i_cnst = 1 ;
callt void f_clt (void) ;
boolean b_bit ;
long l_init = 2 ;
int i_data ;
sreg int sr_inis = 3 ;
sreg int sr_dats ;
void main ()
{
int i ;
i = 100 ;
}
void inter ()
{
unsigned char uc = 0;
uc++;
if (b_bit)
b_bit = 0 ;
}
callt void f_clt ()
{
}
/* Interrupt vector
*/
/* Interrupt function prototype declaration */
/* const variable
*/
/* callt function prototype declaration */
/* boolean-type variable
*/
/* External variable with initial value
*/
/* External variable without initial value */
/* sreg variable with initial value
*/
/* sreg variable without initial value
*/
/* Function definition
*/
/* Interrupt function definition
*/
/* callt function definition
*/
494
User’s Manual U14872EJ1V0UM