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.
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.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
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)
so using picbasic still uses asm code? my compiler is set c:/pbp shall i uncheck the use mpasm assemblyCode:@ __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
also im thinking to order this book ;o
30 Projects Using PIC BASIC and PIC BASIC PRO
As I said go to this link
http://www.picbasic.co.uk/forum/showthread.php?t=543
Look post #5
And no, don't switch to PM assembler, it just don't worth it.
You'll see it's pretty easy once you catch it.
Last edited by mister_e; - 1st February 2009 at 23:24.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
thanks you have been helpfull i will post again when i have something cool to show =)
Bookmarks