English
Language : 

CC78K0S Datasheet, PDF (483/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
CHAPTER 12 REFERENCING THE ASSEMBLER
(2) Referencing variables defined in the assembly language from the C language
Variables defined in assembly language are referenced from the C language in this way.
C language program example
extern char c;
extern int i;
void subf()
{
c = 'A' ;
i=4;
}
The following occurs in the RA78K0S assembler.
NAME ASMSUB
PUBLIC
_c
PUBLIC
_i
ABC CSEG
_c: DB 0
_i: DW 0
END
User’s Manual U14872EJ1V0UM
483