English
Language : 

CC78K4 Datasheet, PDF (324/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language
CHAPTER 11 EXTENDED FUNCTIONS
norec Function
norec
(Output object of compiler) (With large model, when –QR option is specified, and -ZO option is not specified)
EXTRN SADDR2 (_@NRARG0)
PUBLIC
_rout
PUBLIC
_I
PUBLIC
_j
PUBLIC
_main
;Refers to saddr2 area to be used.
@@DATA DSEG
_i: DS
(2)
_j: DS
(2)
@@CODE CSEG
_main:
push
subwg
movg
movg
movw
movw
movw
movw
movw
call
movw
addw
movw
incw
movw
addw
movw
addwg
pop
ret
uup
sp, #06H
whl, sp
uup, whl
ax, [up+2]
rp2, ax
ax, [up]
de, ax
ax, [up+4]
$!_rout
ax, [up+2]
bc, ax
ax, [up+4]
ax
[up+4], ax
bc, ax
!!_i, bc
sp, #06H
uup
;Stores argument l to register RP2.
;Stores argument m to register DE.
;Stores argument k to register AX.
;Calls norec function
;Adds return value of norec function to l.
;
;Increments k
;
;
;Assigns the result of addition to i.
324
User’s Manual U15556EJ1V0UM