This is from memory and I've got no way of doublechecking right now but if you want to get to the bottom of it you can always check/verify/try.
In the .inc file the __CONFIG is enclosed within an ASM/ENDASM block, it gets passed to the assembler as is and it is indented, as it should be.
When you comment it out of the .inc file and put it in your source file you need to tell the compiler to pass that line to the assembler (just as is the case with the .inc file). You do this by either enclosing it within a ASM/ENDASM block or using the single line ASM directive, @, just as you tried.
What I suspect happened in your case is that there is no space between the @ and the __CONFIG so __CONFIG ended up in column 1, hence the error (or is it actually only a warning?).
So, comment it out of the .inc file, then in your source
Code:
ASM
__CONFIG _MCLRE_OFF & _CP_OFF & _WDT_ON & _IOFSCS_8MHZ ; <---- Note the intendation
ENDASM
or
Code:
@ __CONFIG _MCLRE_OFF & _CP_OFF & _WDT_ON & _IOFSCS_8MHZ ; <---- Again, note the intendation
/Henrik.
Bookmarks