This pragma defines an interrupt routine (that is, activating this pragma terminates the function with an RTI instruction instead of an RTS). Normally, interrupt routines save and restore the H register at the entry response exit. If you are sure that H is not written in the interrupt routine, you can use the TRAP_PROC pragma to disable the saving and restoring of H (see #pragma TRAP_PROC: Mark Function as Interrupt Function).