English
Language : 

CC78K4 Datasheet, PDF (325/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language
CHAPTER 11 EXTENDED FUNCTIONS
norec Function
norec
(Output object of compiler…continued)
_rout:
push
push
push
movw
movw
movw
movw
shlw
addw
movw
L0004:
pop
pop
pop
ret
END
uup
rp3
vvp
rp3, ax
vp, de
up, rp2
ax, rp3
ax, 2
ax, _@NRARG0
bc, ax
Saves register for arguments.
;
;
;Assigns the first argument a to RP3.
;Assigns the third argument c to VP.
;Assigns the second argument b to UP.
;Receives the first argument a from register RP3.
;
;Automatic variable x assigned to saddr2
;Assigns return value to BC register
vvp
;Restores registers for arguments.
rp3
uup
EXPLANATION
In the above example, the norec attribute is added in the definition of the rout function as well to indicate that the
function is norec.
COMPATIBILITY
From another C compiler to this C compiler
• Modification is not required if the keyword norec is not used.
• When changing variables to norec variables, modify the program according to the method 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 U15556EJ1V0UM
325