How can I store a string variable?
Like I want to do somethign like this ( but i dont know the code)
A= "Hello World" 'Store String
SEROUT LCD, 6, [A] ' dispaly contents of string A on LCD
Thanks,
Eric
How can I store a string variable?
Like I want to do somethign like this ( but i dont know the code)
A= "Hello World" 'Store String
SEROUT LCD, 6, [A] ' dispaly contents of string A on LCD
Thanks,
Eric
Here's a place to start ...
Embedded Strings in your Code Space
http://www.picbasic.co.uk/forum/showthread.php?t=1999
<br>
DT
You can't handle strings with a single character.
Darrel's system for storing strings in code space is great but you can also put the string into EEROM for example....
A var byte
I var byte
DATA @0, "Hello World", 13, 10 ' This writes the EEROM at code load time.
For I = 0 to 15
read I,A
serout pin, mode, [A] 'Check the syntax, I don't have MCS+ open at the moment
Next I
HTH
Brian
Bookmarks