Where is the interrupt routine? I see if rcif in the early code and it is now missing,
look at this thread especially posts 8, 16.
http://www.picbasic.co.uk/forum/showthread.php?t=4972