Quote Originally Posted by mister_e View Post
The error you have is because you're using MASm as assembler, so just replace all @ DEVICE line with those i've posted one post before.
thank you for making the code look tidy

but i still get an warning error in the programmer and now only 1 error after building

error[118] projectpath.asm 52: overwriting previous address contents (2007)

Code:
@    __CONFIG _CONFIG1, _LVP_OFF & _FCMEN_OFF & _IESO_OFF & _BOR_OFF & _CPD_OFF & _CP_OFF & _MCLRE_OFF & _PWRTE_ON & _WDT_OFF & _INTRC_OSC_NOCLKOUT
@    __CONFIG _CONFIG2, _WRT_OFF & _BOR21V
      
        DEFINE OSC 4
        OSCCON = %01100001
        PORTD = 0
        TRISD = 0
loop:   
        PORTD.0 = 1 ' Turn on LED connected to PORTD.0
        Pause 500 ' Delay for .5 seconds
        
        PORTD.0 = 0 ' Turn off LED connected to PORTD.0
        Pause 500 ' Delay for .5 seconds
        
        Goto loop ' Go back to loop and blink LED forever
        End
so using picbasic still uses asm code? my compiler is set c:/pbp shall i uncheck the use mpasm assembly

also im thinking to order this book ;o

30 Projects Using PIC BASIC and PIC BASIC PRO