PDA

View Full Version : Little grammer lesson needed



Archangel
- 23rd November 2006, 04:37
Greetings Everybody,
Minor syntax issue, I wish to place this code in my program, it is 104 charactors long and the page is only 80 charactors. How do I continue a line of assembly code to wrap into the next line?
@ __config _HS_OSC & _WDT_OFF & _PWRTE_ON & _MCLRE_ON & _LVP_OFF & _CP_OFF & _BODEN_OFF & _DATA_CP_OFF

I RTFM but CFNA (can find no answer)
thank you again ;)
Joe

mister_e
- 23rd November 2006, 05:26
unfortunatly, you'll have to live with it. I don't remeber there's a way to do it with MPASM __CONFIG... well directly...

You can Still write the numeric value.. but it's unreadable and a pain to change later

PBP @ DEVICE allow to use multiple lines.

Darrel Taylor
- 23rd November 2006, 07:47
Something like this might work

@MyConfig = _HS_OSC & _WDT_OFF & _PWRTE_ON & _MCLRE_ON & _LVP_OFF
@MyConfig = MyConfig & _CP_OFF & _BODEN_OFF & _DATA_CP_OFF
@ __config MyConfig

mister_e
- 23rd November 2006, 08:09
That's what i meant by 'I don't remember there's a way to do it with MPASM __CONFIG... well directly... "

AND YES, i confirm IT'S working... Darrel beat me ... once again :(


<img src="http://www.mister-e.org/Pics/RollinEyes.gif">

Archangel
- 23rd November 2006, 09:09
You Da Man Darrel !
<img src="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=1213&stc=1&d=1164272698">