Quote Originally Posted by AndyFreestone View Post
This is an example that just does not work - OK laugh but once I get through the basics I'll be playing all night.

.
.
.

#config
_config _mclre_on & _CP_OFF & _WDT_OFF #endconfig


mainloop:
high porta.1 ' Turn on LED connected to PORTD.0 <----- SYNTAX ERROR
Pause 500 ' Delay for .5 seconds
Low porta.0 ' Turn off LED connected to PORTD.0
Pause 500 ' Delay for .5 seconds
Goto mainloop ' Go back to loop and blink LED forever

End


Although the comments box states that it is for a PIC18F452 the selection box on the compiler is set to 12F509.

Even if the poor 12F509 does not have enough memory for the task in hand I shouldn't get syntax errors ?

Doesn't compile due to your wrong CONFIG ...

so; moreover, it can't be programmed into the chip ...

Alain