for the 8259 PIC:

  when you get an interrupt on one of the IRQ n lines, does the corresponding
  bit in the Interrupt Request Register get set regardless of the Interrupt
  Mask Register?


--------
- TODO -
--------

compile on as many machines as possible.

write document for developers outlining steps necessary to add devices.

add support for file descriptor events.  maybe can test with stdin.

print code out.  have a thorough look.

make a macro to check for events etc. so it can easily be called
  multiple times.

write LICENSE stuff.


*** remember to send manual EOI after interrupt routine ends.
  bx_outp(0x20, 0x20)  for EOI irq 0..7
  bx_outp(0xA0, 0x20)  both needed for irq 8..15

  and to enable IRQ 2 for cascade to slave PIC.
  bx_outp(0x21, bx_inp(0x21) & ~(1<<2));
