SN8P2714X_2715
8-bit micro-controller build-in 12-bit ADC
SONiX TECHNOLOGY CO., LTD
Page 106
V1.4
;Process P0.0 external interrupt here
jmp
IsrExit
;-------------------------------------------------------------------------------
;
TC0 interrupt service routine
;-------------------------------------------------------------------------------
TC0isr:
b0bclr
FTC0IRQ
;Process TC0 timer interrupt here
jmp
IsrExit
;-------------------------------------------------------------------------------
; SysInit
;
Initialize I/O, Timer, Interrupt, etc.
;-------------------------------------------------------------------------------
SysInit:
ret
;-------------------------------------------------------------------------------
; ClrRAM
; Use index @YZ to clear RAM (00h~7Fh)
;-------------------------------------------------------------------------------
ClrRAM:
; RAM Bank 0
clr
Y
;Select
bank
0
b0mov
Z,#0x7f
;Set @YZ address from 7fh
ClrRAM10:
clr
@YZ
;Clear
@YZ
content
decms
Z
;z = z – 1 , skip next if z=0
jmp
ClrRAM10
clr
@YZ
;Clear
address
0x00
ret
;-------------------------------------------------------------------------------
ENDP