Does your version of PIC BASIC support the 18f45k22?
It might help to know what version of PBP and MPASM. Your entire code couldn't hurt either.
Do they really have a spelling error on illegal?Error[122] c:\pbp\pbppic18.lib 1237 : Illigal opcode (INIT)
Robert
Bookmarks