Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Borland C++ 2.x ( with Turbo C ) - <b>disable() disable interrupts (macro)</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 disable()               Disable Interrupts (Macro)

 #include   <dos.h>

 void       disable(void);

    disable() provides control over hardware interrupts by disabling all
    but the NMI interrupt.

       Returns:     Nothing

         Notes:     disable() is a macro.

   Portability:     8086-Family of processors only.

   -------------------------------- Example ---------------------------------

    The following statements disable and then re-enable the interrupts.

           #include <dos.h>     /* for disable and enable */

           main()
           {
               disable();
               /* execute operations which can't be interrupted */
               enable();
           }


See Also: enable() geninterrupt() getvect()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson