Is this all of your code or is it a snippet (in post above)? I ask because you have no list, includes, or CONFIG at the start. Inside the Microchip folder (from the MPLAB install), you should be able to find a template for the 16c745. I would suggest using this as the outer shell and put your stuff inside. Further, because the PIC you picked is quite "fancy", you should make it blink an LED first to ensure it is even running. Your program is not difficult, but you should start even simpler than you are otherwise you do not know if your problem is a logic issue, a hardware issue, a register issues, etc.
Try to blink your led first
Oh, if your code is complete, you lost the wrap around to return to Start. Your code would just run off into no-where and execute any code left in your PIC (should it be the windowed version)
Paul Borgmeier
Salt Lake City, UT
USA
__________________
Bookmarks