Fix a long standing problem with interrupt handling.

This also fixes the fact that bits 1, 3, and 5 of the PSW are constant
1, 0, 0 respectively.