【问题标题】:How can i block all the other ISR requests, except the one that i'm in.我如何阻止所有其他 ISR 请求,除了我所在的那个。
【发布时间】: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


【解决方案1】:

不可能屏蔽软件中断..

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-09-11
    • 1970-01-01
    • 1970-01-01
    • 2014-03-20
    • 1970-01-01
    相关资源
    最近更新 更多