Don't know why it's not working for you. I can't run it in ISIS cause there's too much missing.

But I think this is one of those instances where you don't really need interrupts to do what you want.

The INTF flag will be set when the INT input is triggered, whether you are using interrupts or not. And it stays latched until cleared in software.

So at the end of your loop, after the FOR/NEXT, just check the INTF flag and if it's set, call the subroutine, and clear the flag before returning. No interrupts needed.

hth,