English
Language : 

CC78K4 Datasheet, PDF (316/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language
CHAPTER 11 EXTENDED FUNCTIONS
noauto Function
EXAMPLE
(C source)
noauto short nfunc (short, short, short);
short l, m;
void main (void)
{
static short s1, s2, s3;
l = nfunc (s1, s2, s3);
}
noauto short nfunc(short a, short b, short c)
{
m = a + b + c;
rturn(m);
}
(Output object of compiler) With small model, when -ZO option is not specified
@@DATA
DSEG
_l :
DS
(2)
_m :
DS
(2)
?L0003: DS
(2)
?L0004: DS
(2)
?L0005: DS
(2)
@@CODES CSEG
_main: s3
push
movw
push
movw
call
pop
movw
ret
BASE
ax
ax,!?L0004 ;s2
ax
ax,!?L0003 ;s1
!_nfunc
;Calls nfunc (a, b, c)
ax,de
!_l,bc
;Assigns return value to external variable l
noauto
316
User’s Manual U15556EJ1V0UM