SN8P1700
8-bit micro-controller build-in 12-bit ADC
SONiX TECHNOLOGY CO., LTD
Page 182
Revision 1.93
;-----------------------------------
; Exit interrupt service routine
;-----------------------------------
IsrExit:
; Following two lines for SN8X1702 only
;b0mov A,PFLAG
;b0mov PflagBuf,A
pop
;Remark
this
line
in
SN8P1702
;Restore
80h
~
87h
system
registers
b0xch
A,AccBuf
;B0xch instruction do not change C,Z flag
reti ;Exit
the
interrupt
routine
;-------------------------------------------------------------------------------
;
INT0 interrupt service routine
;-------------------------------------------------------------------------------
P00isr:
b0bclr
FP00IRQ
;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