ide-tape: simplify code branching in the interrupt handler