Quote Originally Posted by AvionicsMaster1 View Post
If you'll look in the PBP3 manual there's a fine example of how to write a config statement. This if for a different chip but you see the context of how it should be written.

'Config for 16F877A
#CONFIG
__config _XT_OSC & _WDT_ON & _LVP_OFF & _CP_OFF
#ENDCONFIG

Enjoy.
Thanks a lot AvionicsMaster1, I downloaded it and I was busy skimming through things from the beginning like how to enable pull ups etc. because some of my own codes I wrote back in 2008 haven't worked. So I spent the night looking for the new changes in the manual and I had a look on some examples. But thanks to you, you cut the way through for me with the config thing. Now I'm on the right track.