English
Language : 

CC78K0S Datasheet, PDF (428/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
CHAPTER 11 EXTENDED FUNCTIONS
Static Model Expansion Specification
-ZM
(Output object …continued)
L0004:
; line 15 : }
movw hl,ax
; Saves register a
pop
ax
;
movw _@KREG14,ax
; Restores the _@KREG10 to _@KREG15 areas
pop
ax
;
movw _@KREG12,ax
;
pop
ax
;
movw _@KREG10,ax
;
movw ax,hl
; Restores register a
ret
; line 16 : char func2(char a, char b, char c, char d)
; line 17 : {
_func2:
mov
_@NRAT01,a
movw ax,bc
mov
_@NRAT02,a
movw ax,hl
mov
_@NRAT03,a
; line 18 : return a + b + c + d;
mov
a,_@NRAT01
;a
add
a,_@NRAT02
;b
add
a,_@NRAT03
;c
add
a,_@NRAT00
; d Uses _@NRAT00 for the leaf function
L0006:
; line 19 : }
ret
428
User’s Manual U14872EJ1V0UM