C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
Special Considerations in Interrupt Handlers
                                             Up Contents Index Back
─────C/C++ Language─────────────────────────────────────────────────────────
 
     When an interrupt handler is called by an INT instruction, the
     interrupt enable flag is cleared. This means that no further
     interrupts (including keyboard, time-of-day, and other crucial
     interrupts) are processed until your function returns. If your
     function needs to perform significant processing, you should use
     the enable function to set the interrupt flag so that other
     interrupts can be handled.
 
     Interrupt handlers are special cases of C functions, since they
     are potentially reentrant. When designing an interrupt-handling
     function in C, consider the following guidelines:
 
        ■ If your function does not use the enable function to set
          the interrupt flag, it is not reentrant: important
          interrupts may be ignored.
 
        ■ If your function does use the enable function to set the
          interrupt flag, another interrupt may take place. Make sure
          that your handler takes this into account.
                                    -♦-