English
Language : 

CC78K4 Datasheet, PDF (501/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language
APPENDIX B LIST OF SEGMENT NAMES
B.3 Example of C Source
#pragma INTERRUPT INTP0 inter rb1
void inter(void);
const int i_cnst = 1;
callt void f_clt(void);
callf void f_clf(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()
{
}
callf void f_clf()
{
}
/* interrupt vector */
/* interrupt function prototype declaration */
/* const variable */
/* callt function prototype declaration */
/* callf 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 */
/* callf function definition */
User’s Manual U15556EJ1V0UM
501