I want to use the extra memory in the XRAM area of the 89C51RB2 for extra variable storage. How is this done? If I write xdata unsigned int frequency[20] _at_ 0x0100; I get the error error 274:'frequency': absolute specifier illegal. What am I doing wrong?
Why are you using _at_? Just tell the tools you want the variables in XDATA, and let them get on with it!
You need to make the declaration outside of any functions.
Thanks. Found the problem. As you so rightly said I had to set the XDATA area in the Linker Options (I'm using Version 5.5)