Ask Question

Why cli and sti instructions are used during hooking aninterrupt?

+4
Answers (1)
  1. 13 April, 02:49
    0
    Answer: Cli (Clear interrupt flag) and sti (set interrupt flag) instructions are used for clearing the flag and setting or enabling a flag respectively while hooking an interrupt.

    Explanation: During the action of hooking an interrupt, there are certain interruptions while changing of real time interrupt vector and to avoid those interruptions two instructions are used that is cli ans sli. Cli is present for the clearing or disabling the interrupt flag and sti is used for setting or enabling a interrupt flag.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Why cli and sti instructions are used during hooking aninterrupt? ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers