We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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?
It isn't obvious if you are talking about the pointer or the character array.
But did you start by going to the reference, i.e. looking at the manual? Or did you consider Google?
Trying Google with "keil c51 placing variable in idata" seems to be a rather good start...
I am more familiar with assembly and that's why I am finding it difficult to achieve this.
I did search the web and found this:
http://www.keil.com/support/man/docs/c51/c51_le_absvarloc.htm
In this tutorial the code §struct link list idata _at_ 0x40; is used. I tried changing this code from a structure to a string but unfortunately it did not work.
PS: Sorry for my poor English.