#712 DS80C390:machine specific addressing / addressing mode error

closed-fixed
5
2013-05-25
2004-02-20
No

Compiling the code attached to this message will show an error:

sdcc -c -mds400 --model-flat24 --stack-10bit -I
/home/sdcc/share/sdcc/include mon.c

?ASxxxx-Error-<a> in line 645 of mon.asm
<a> machine specific addressing or addressing mode error
?ASxxxx-Error-<a> in line 681 of mon.asm
<a> machine specific addressing or addressing mode error
removing mon.rel
*** Error code 1

SDCC Version:
SDCC :
mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08
2.3.8 (Feb 20 2004) (UNIX)

By removing small pieces of code inside the switch statement, the
error might go away.

Certain labels in the assembler output appear several times in the file
(e.g. 00101$), but I'm not sure if this is intentional and / or related to
the problem.

Discussion

  • source code, makefile and output

     
    Attachments
  • Erik Petrich
    Erik Petrich
    2004-03-02

    • milestone: --> fixed
    • assigned_to: nobody --> epetrich
    • status: open --> closed-fixed
     
  • Erik Petrich
    Erik Petrich
    2004-03-02

    Logged In: YES
    user_id=635249

    The instruction sizes were not being correctly estimated.
    Fixed; see ChangeLog 1.660 for the relevant file updates.