transfer a string from ROM to an array


Results 1 to 40 of 45

Threaded View

  1. #28
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    84


    Did you find this post helpful? Yes | No

    Default Re: transfer a string from ROM to an array

    Richard,
    the source of my doubts is that I have some unexpected behaviours and I'm trying to understand where is the problem.
    Watching the program memory, I found some "00" chars here and there in the middle of the string
    Lets' say the string "Hello",0 when I look the program memory is 48 65 6C 00 6C 6F 00
    I'm discovering now that the directive "da" is only for PIC12/16 and not for PIC18

    http://ww1.microchip.com/downloads/e...Doc/33014J.pdf

    I think I should use "db" or "data", I'm trying to understand

    "db" seems to work fine
    Last edited by Marcick; - 21st April 2015 at 08:40.

Similar Threads

  1. String of characters(array) to decimal value
    By tacbanon in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 20th June 2012, 14:30
  2. Replies: 3
    Last Post: - 3rd December 2011, 22:48
  3. Array of string to send with TX int ?
    By amgen in forum General
    Replies: 18
    Last Post: - 18th August 2011, 16:56
  4. How to send a string with another string inside it?
    By financecatalyst in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 13th May 2011, 17:11
  5. Manipulation of string array
    By Benny007 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 23rd April 2008, 20:50

Members who have read this thread : 0

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