Yes, someone keeping me in check. Good.

You're right RRacer, it does say that.

And now I'm back to gee, I don't know. Unless ...

Since there isn't a LOADER_USED define, can I assume you are using ICSP?   And, is the programmer always connected?   Is the programmer conflicting with the RB7 input? Just another thought.
<br>
Darrel

P.S. What chip are you using? 16F737? The ADCON1 seems odd. That won't affect PORTB.7, I'm just trying to figure out what chip it is.