📄 interrupt.asm.bak
字号:
;************************************************
;Name :InterruptSub
;Function:
;Input :
;Output :
;Register Used:
;*************************************************
InterruptSub:
XCH A,AccBuf
XCH A,PFLAG
B0MOV PflagBuf,A
b0bts1 FTC1IRQ ;//Analyse the Interrupt resourc
jmp Interrupt10
b0bclr ftc1irq
b0bts1 buzzerflag
jmp Interrupt5
notbit ptbuzz
Interrupt5:
incms timer10ms
nop
mov a,#20
cmprs a,timer10ms
jmp TC0INTR90
clr timer10ms ;10ms
bset t10msflag
jmp Interrupt90
;Interrupt5:
; b0bts1 ft0irq
; jmp Interrupt10
; b0bclr ft0irq
Interrupt10:
b0bts1 FP00IRQ
jmp Interrupt90
b0bclr fp00irq
mov a,#1
add countfreql,a
mov a,#0
adc countfreqh,a
Interrupt90:
b0bclr fp01irq
b0bclr ft0irq
XCH A,PflagBuf
B0MOV PFLAG,A
XCH A,AccBuf ;//For release the Acc And Pflag
RETI
;--------------------------------------------------------
;--------------------------------------------------------
timing:
b0bts1 t10msflag
jmp timing90
mov a,keychat
b0bts0 fz
jmp timing10
decms keychat
nop
timing10:
timing90:
ret
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -