📄 compare_int.asm
字号:
;;**************************************************************************
isr_Comparator:
mov isr_acc2,a
mov a,status
mov isr_status2,a
; nop
; nop
; nop
;----------------------------------------------------------------
;MISC.6 COUTR Comparator output flag. This bit is read only...
;0: Comparator output is low state..
;1: Comparator output is high state..
;----------------------------------------------------------------
sz Misc.4 ;if cpo is low
jmp L_ExitIsrCompartor
MOV A,0FFH
MOV PCC,A
; SET PA.3
set F_ShortProtect
mov a,6
mov intc0,a
mov a,00100010b
andm a,intc1
L_ExitIsrCompartor:
mov a,isr_status2
mov status,a
mov a,isr_acc2
reti
;;**************************************************************************
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -