Use an IRQ mask to compute whether or not to jump

Note we still fail the HALT test and I haven't a clue why.