Hi,

PBP handles interrupt in a rather lazy way. It traces an interrupt by polling the interrupt flags and when found flags it in software, clears the hardware flag and jumps to the on interrupt routine after it has fininshed the current execution.
So you should :

1. Place the on interrupt statement in top part of your code

2. Always end it with a resume (otherwise it executes it forever)

3. To temporarily disable interrupt, just clear the int sources, without turning off the global bit.

Regards

Sougata