26 /* set/clear interrupts */
27 #define intr_enable() \
28 do { REG_IME |= 0x0001; } while(0)
29 #define intr_disable() \
30 do { REG_IME &= 0xfffe; } while(0)
32 /* set an interrupt handler */
33 void interrupt(int intr, void (*handler)(void));
35 /* mask/unmask an interrupt */
36 #define mask(intr) do {REG_IE &= ~(1 << (intr));} while(0)
37 #define unmask(intr) do {REG_IE |= 1 << (intr);} while(0)