I think you turn on and off the Interrupt-enable-bits in order to handle the waste off interrupts....

Just enable an interrupt,
clear the interrupt-flag inside the Interrupt-service-routine,
and wait inside your Main-Loop forever.

And look into the PBP-help for such directives as DISABLE... !