Ask Question
18 March, 20:50

Why cli and sti instructions are used during hooking aninterrupt?

+3
Answers (1)
  1. 18 March, 21:41
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers