Interrupt support

This change introduces simulated interrupt support. At this time the software stack does not support
hardware interrupts. This change simulates the interrupts by polling.
Perhaps this test should be performed before the <code>switch</code>, assigned to a variable that is then provided to the <code>switch</code>.