Hello,
is it possible to write a program with the small-memory-model, to declare some variables as xdata and to declare an char array[256] of pdata?
Best regards, Stefan
C allows pointers to point one step past the last element of an array. I wonter what C51 does in this case.
The pdata type uses the @Rn for access, so it's almost certainly going to wrap around to the start of the 256 byte block.
Many controllers with "internal external RAM" have special addressing schemes (usually a SFR) for the high byte of movx @Ri. Some of those may not be supported by the compiler.
Erik