Doh!.... Thanks.

I have a whole pile of P16F877A's lying around and I did originally write the code for the the P16F877A but changed over to the P18F4550.

Do you know what the first line of the program is ?

"; PIC18F4550 32k program memory "

Doh....