Storing STRINGS in codespace


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2007
    Posts
    7

    Thumbs up Storing STRINGS in codespace

    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.

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Peaps View Post
    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...

  3. #3
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default

    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.
    Last edited by Art; - 14th May 2008 at 06:20.

Similar Threads

  1. Please help with storing strings in codespace
    By g-hoot in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 16th May 2008, 01:02
  2. How to write/read strings EEPROM/LCD
    By g-hoot in forum mel PIC BASIC Pro
    Replies: 22
    Last Post: - 11th February 2007, 06:26
  3. Processing lengthy strings
    By sougata in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 21st March 2006, 05:27
  4. Storing Strings using the Write command
    By BobP in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 1st November 2005, 11:31
  5. I2CWRITE writing Strings to EEPROM
    By NavMicroSystems in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 27th March 2005, 19:45

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts