Hello dagger, and welcome to the Pic Basic compiler forum.

The forum here is made for folks that use PicBasicPro, a basic compiler. Most here don't feel as comfortable programming in assembly. Yes, there are some here that are pretty comfortable with assembly, but the majority are not.

I am sure if you re-write it in PicBasic Pro, you will get a lot more help here. Maybe someone will still answer your original question, but probably less likely here than at the microchip forum.

Good luck.

Walter