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

xdata and compact memory model

If I'm using the compact memory model, which implicitly sticks variables in xdata, but also declare a variable (in this case a char[]) to go in xdata, it appears to use the wrong pointer type. Thus, I get the lower 8 bits if the address, NOT the data.

Not explicitly declaring the variable as xdata yields the correct result.

Is it me or the compiler?

Parents Reply Children