English
Language : 

CC78K0S Datasheet, PDF (496/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
APPENDIX B LIST OF SEGMENT NAMES
_i_data:
DS
(2)
@@R_INIS
DW
CSEG UNITP
03H ; 3
; Segment for initialization data
(sreg variables with an initial value)
@@INIS DSEG SADDRP
_sr_inis:
DS
(2)
; Segment for data area
(sreg variables with an initial value)
@@DATS DSEG SADDRP
_sr_dats:
DS
(2)
; Segment for data area
(sreg variables without an initial value)
@@CALT CSEG
?f_clt: DW
CALLT0
_f_clt
; Segment for the callt function
; line
; line
; line
; line
; line
; line
; line
; line
; line
; line
; line
; line
; line
1 : #pragma INTERRUPT INTP0 inter
2:
3 : void inter(void);
4 : const int i_cnst=1;
5 : callt void f_clt(void);
6 : boolean b_bit;
7 : long l_init=2;
8 : int i_data;
9 : sreg int sr_inis=3;
10 : sreg int sr_dats;
11 :
12 : void main()
13 : {
/*Interrupt vector*/
/*Interrupt function prototype declaration*/
/*const variable*/
/*callt function prototype declaration*/
/*boolean-type variable*/
/*External variable with an initial value*/
/*External variable without an initial value*/
/*sreg variable with an initial value */
/*sreg variable without an initial value */
/*Function definition*/
@@CODE
_main:
; line
; line
; line
; line
; line
CSEG
push hl
movw ax,#02H
callt [_@cprep]
14 : int i;
15 : i=100;
movw ax,#064H
mov
[hl+1],a
xch
a,x
mov
[hl],a ; i
16 : }
pop
ax
pop
hl
ret
17 :
18 : void inter()
; Segment for code block
;[INF] 1, 4
;[INF] 3, 6
;[INF] 1, 8
; 100
;i
;[INF] 3, 6
;[INF] 2, 6
;[INF] 1, 4
;[INF] 1, 6
;[INF] 1, 6
;[INF] 1, 6
;[INF] 1, 6
/*Interrupt function definition*/
496
User’s Manual U14872EJ1V0UM