English
Language : 

CC78K0S Datasheet, PDF (329/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
CHAPTER 11 EXTENDED FUNCTIONS
noauto Function
noauto
(Output object of compiler …continued)
;line
movw
xch
add
xch
addc
xch
add
xch
addc
mov
xch
mov
;line
xch
movw
;line
pop
movw
pop
movw
pop
ret
10: m = a + b + c;
ax, hl
a, x
a, _@KREG12
a, x
a, _@KREG13
a, x
a, _@KREG14
a, x
a, _@KREG15
!_m+1, a
a, x
!_m, a
11: return(m);
a, x
bc, ax
12: }
ax
_@KREG14, ax
ax
_@KREG12, ax
hl
;
;
;
;
;
;
;
;
; Adds b(HL) and c(_@KREG14) to a(_@KREG12)
; Assigns the calculation result to external variable m
; Returns the contents of external variable m
;
; Restores _@KREG14
;
; Restores _@KREG12
; Restores HL
EXPLANATION
• In the above example, the noauto attribute is added at the header part of the C source.
noauto is declared and stack frame formation is not performed.
COMPATIBILITY
<From another C compiler to this C compiler>
• The C source program need not be modified if the keyword noauto is not used.
• To change variables to noauto variables, modify the program according to the procedure described in
USAGE above.
<From this C compiler to another C compiler>
• #define must be used. For details, see 11.6 Modifications of C Source.
User’s Manual U14872EJ1V0UM
329