English
Language : 

CC78K0S Datasheet, PDF (472/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
CHAPTER 12 REFERENCING THE ASSEMBLER
(Output assembler source)
EXTRN
EXTRN
EXTRN
EXTRN
PUBLIC
PUBLIC
@@CODE
_main:
movw
push
movw
call
pop
ret
_func0:
push
xch
xch
xch
xch
push
movw
push
movw
push
movw
movw
mov
xch
mov
movw
movw
movw
movw
movw
pop
movw
pop
movw
pop
movw
pop
ret
END
_@KREG12
_@KREG13
_@KREG10
_@KREG14
_func0
_main
CSEG
ax,#05678H
ax
ax,#01234H
!_func0
ax
hl
a,x
a,_@KREG12
a,x
a,_@KREG13
ax
ax,_@KREG10
ax
ax,_@KREG14
ax
ax,sp
hl,ax
a,[hl+10]
a,x
a,[hl+11]
hl,ax
ax,hl
_@KREG14,ax
ax,_@KREG12
_@KREG10,ax
ax
_@KREG14,ax
ax
_@KREG10,ax
ax
_@KREG12,ax
hl
;22136
;4660
; Argument passed on stack
; 1st argument passed on register
; Function call
; Argument passed on stack
; Saves the register for arguments
; Allocates register argument p1 to _@KREG12.
; Saves the saddr area for register arguments.
; Saves the saddr area for register variables.
; Saves the saddr area for automatic variables.
; Argument p2 passed on stack
; Assigned to HL
; Argument p2
;r
; Assigned to register variables r.
;p1
; Register argument p1
;a
; Assigned to automatic variable a.
; Restores the saddr area for register variables.
; Restores the saddr area for automatic variables.
; Restores the saddr area for register arguments.
; Restores the register for arguments
472
User’s Manual U14872EJ1V0UM