English
Language : 

CC78K0S Datasheet, PDF (451/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
CHAPTER 11 EXTENDED FUNCTIONS
(Output code) (continued)
; line 8: register int r ;
; line 9: int a ;
; line 10: r = p2 ;
mov
a, [hl + 10]
; p2
xch
a, x
mov
a, [hl + 11]
movw _@KREG14, ax
; line 11: a = p1 ;
movw ax, _@KREG12
mov
[hl + 1], a
xch
a, x
mov
[hl], a
; line 12: }
pop
ax
pop
ax
movw _@KREG14, ax
pop
ax
movw _@KREG12, ax
pop
hl
ret
; p2
;r
; p1
;a
;a
; Assigns argument p2, which is received/passed via
; a stack,
; to register variable _@KREG14
; Assigns register argument _@KREG12 to
; Automatic variable a
; Releases the area for automatic variable a
; Restores the saddr area for register variables
; Restores the saddr area for register arguments
User’s Manual U14872EJ1V0UM
451