change line 14 of your code...

Does it work?

Oh well, if we had code and schematic we could have found the problem even in ASM in a Melabs PICBasic Pro forum