Re: [Sdcc-user] Atmel AT89C51AC3 xdata initialization

2013-06-23 Thread Maarten Brock
Hello Markus, If your MCU has an MPAGE then just declare it as _XPAGE in any of your source files and you should be fine. You should check your datasheet if it exists and lives at address 0x92. __sfr __at(0x92) _XPAGE; If there is no MPAGE/XPAGE/EMI0CN equivalent then MOVX @Ri cannot access an

[Sdcc-user] Atmel AT89C51AC3 xdata initialization

2013-06-23 Thread Markus
Hi everybody. I am currently working on an project where I want to store a sine wave lookup table within the 2048 bytes of ERAM of the AT89C51AC3. Thus before my code enters the main() it initializes this array like that: __xdata unsigned char dac_values[128]={128,134,140,146,152,158,165,170,1