【发布时间】:2012-12-01 16:14:28
【问题描述】:
...
;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。
【问题讨论】:
-
我想禁用除分配给计数器 (ISR_COUNT12) 的软件中断之外的所有软件中断。如何在中断向量表中使用索引“34”屏蔽中断,以免在使用 CLI/STI 时受到影响??
-
老实说,我认为这是不可能的。
标签: assembly assemblies