PDA

View Full Version : Storing STRINGS in codespace



Peaps
- 27th February 2008, 10:45
This would be very useful. Even if this meant converting the string to a Byte[array] with a null char (0) at the end.

I think a lot of people would benefit from some basic form of string handling.

skimask
- 27th February 2008, 13:47
This would be very useful. Even if this meant converting the string to a Byte[array] with a null char (0) at the end.
I think a lot of people would benefit from some basic form of string handling.

Search = copystr
You'll find a bit to work with...

Art
- 14th May 2008, 06:18
That's what a lookup table does, and picBASIC supports that.
If not, it's not a difficult task to do with some inline assembler.

Any string in an 8 bit pic is stored as a byte array.
ASCII characters exist only in your imagination, certainly not stored in memory.