I think I am having trouble with using Program Counter Latch in the Special Function Register using Assembly language with PIC16F690. In the attached file, it works as expected. When I include it in a longer program (a little less than 1,400 lines of code), I suspect it is jumping to unexpected lines of code. It was working as expected when I was using the PicKit 2 Debugger with my circuit on a breadboard; however, it does not work as expected when I write the code to PIC16F690 embedded on a PCB board. It appears all the rest of my code is working correctly with the exception of the part of the code involved with the PCL subroutine. Might the "LightSet" subroutine in the attachment not work in lengthier code when using the MPASM Assembler v 5.50 compiler?