Hi, Sneezy
Here's the reason ...
PBP defaults :
INCLUDE "P18F4520.INC" ; MPASM Header
;__CONFIG _CONFIG1H, _OSC_HS_1H & _FCMEN_OFF_1H & _IESO_OFF_1H
;__CONFIG _CONFIG2H, _WDT_ON_2H & _WDTPS_512_2H
;__CONFIG _CONFIG3H, _CCP2MX_PORTC_3H & _PBADEN_OFF_3H & _LPT1OSC_OFF_3H & _MCLRE_ON_3H
;__CONFIG _CONFIG4L, _STVREN_ON_4L & _LVP_OFF_4L & _XINST_OFF_4L
so, "PBP" is supposed to clear this config bit ... but you remmed those lines :
BUT ...
MPASM defaults it to OFF ...
Sooooo, What happend ??? how did it turn on by itself ??? 
Conclusion ... do not forget to explicitly turn OFF XTINST in your config.
Further explanations can be found in Datasheet $24 ( a bit over my own head ...I admit ! )
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks