...
;counter1 init
mov al, 01110100b
out 063h, al
;counter2 init
mov al, 10010100b
out 063h, al
...
; ISR executed when count2 ends
ISR_COUNT12 PROC
cli
;procedure to be protected from the other ISR interrupts
sti
IRET
ISR_COUNT12 ENDP
每次counter12(PIC-8253)完成计数后,我都需要重新执行ISR_COUNT12。每次counter2变为0时都会调用ISR_COUNT12。