I am using SDCC ( version 2.8.0) , for developing embedded applications on a AT89C51ED2 8051 chip based board.
One of the functions in this application has the following inline assembly code
__xdata unsigned char test_xdata;
EECON |= 0x02;
When trying to buid the executable for this piece of code ( which tries to write data on to the EEPROM of the board),
?ASxxxx-Error-<a> in line 665 of ex23.asm
<a> machine specific addressing or addressing mode error
is displayed .
If anyone has come across a similar situation,please guide me.
it would help if you'd show line 665 of ex23.asm :^)
In this case it's most likely:
though. This addressing mode is not supported on mcs51
(storing from direct address to xdata address).
storing from accumulator to xdata address should work:
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.