8 #define install_keyboard()
9 #define keypressed() kbhit()
10 #define readkey() getkey()
15 #define END_OF_FUNCTION(x) void x##_end() { }
16 #define LOCK_VARIABLE(x) _go32_dpmi_lock_data((void *)&x, sizeof(x))
17 #define LOCK_FUNCTION(x) _go32_dpmi_lock_code(x, (long)x##_end - (long)x)
22 #define END_OF_FUNCTION(x)
23 #define LOCK_VARIABLE(x)
24 #define LOCK_FUNCTION(x)
28 #define DISABLE() __asm__ __volatile__("cli");
29 #define ENABLE() __asm__ __volatile__("sti");
32 int _install_irq(int num, int (*handler)());
33 void _remove_irq(int num);
38 typedef struct _IRQ_HANDLER
40 int (*handler)(); /* our C handler */
41 int number; /* irq number */
42 __dpmi_paddr old_vector; /* original protected mode vector */