This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Saving in 8051 IDATA starting from 92H

Hello,

I have the following line of code which I need to store in the IDATA memory starting from 92H.

char code *text_to_compare = "Tesing";

How can I achieve this please?

Parents
  • "I tried changing this code from a structure to a string but unfortunately it did not work."

    And the question then is still if you wanted to move the pointer or the character array to a specific memory region. It really is important to understand the difference between:

    char *str = "hello";
    


    and:

    char str[] = "hello";
    

Reply
  • "I tried changing this code from a structure to a string but unfortunately it did not work."

    And the question then is still if you wanted to move the pointer or the character array to a specific memory region. It really is important to understand the difference between:

    char *str = "hello";
    


    and:

    char str[] = "hello";
    

Children