SN8P1600
8-bit micro-controller
;-------------------------------------------------------------------------------
; INT0 interrupt service routine
;-------------------------------------------------------------------------------
INT0isr:
b0bclr
;Process P0.0 external interrupt here
jmp IsrExit
FP00IRQ
;-------------------------------------------------------------------------------
; TC0 interrupt service routine
;-------------------------------------------------------------------------------
TC0isr:
b0bclr
FTC0IRQ
;Process TC0 interrupt here
jmp
IsrExit
;-------------------------------------------------------------------------------
; SysInit
; System initial to define Register, RAM, I/O, Timer......
;-------------------------------------------------------------------------------
SysInit:
ret
;-------------------------------------------------------------------------------
; ClrRAM
; Use index @YZ to clear RAM (00h~2Fh)
;-------------------------------------------------------------------------------
ClrRAM:
clr
Y
;
b0mov
Z,#0x2f
;Set @YZ address from 2fh
ClrRAM10:
clr
@YZ
;Clear @YZ content
decms
jmp
clr
Z
;z = z – 1 , skip next if z=0
ClrRAM10
@YZ
;Clear address $00
ret
;-------------------------------------------------------------------------------
ENDP
SONiX TECHNOLOGY CO., LTD
Page 82
Revision 1.94