Hi all !
When trying to compile the following code with asx8051
mov A, #555
mov DPTR, #43
movx @DPTR, A
it fails with the following error
?ASxxxx-Error-<a> in line 11 of tst.asm
<a> machine specific addressing or addressing mode error
The solution in the code is to remplace @DPTR by @dptr. This is due to
an horrible hack in the code which define strcmpi as strcmp, and so
strcmp("DPTR", "dptr") != 0. The excuses was that strcmpi is not ANSI !
I've attached a patch to fix that by reimplementing a strcmpi function
(taken from glibc, which is licensed under GNU LGPL).