;-----------------------------------------------------------------------------
; setting the stack pointer
;
; _@STBEG is created by linker with -S option.
;-----------------------------------------------------------------------------
MOVW SP,#LOWW _@STBEG ;SP <- stack begin address
;-----------------------------------------------------------------------------
; hardware initialization
;-----------------------------------------------------------------------------
CALL !!_hdwinit
;-----------------------------------------------------------------------------
; clear stack area
;
; _@STEND is created by linker with -S option.
;-----------------------------------------------------------------------------
MOVW HL,#LOWW _@STEND ;HL <- stack end address
CALL !!_stkinit
后面