Handling interrupts in assembly language