Add support for interrupts in 32-bit code. Remove some unnecessary code from 16-bit interrupt emulation.