Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#2166 Macro expansion in sdas not working

closed-fixed
Maarten Brock
None
sdas
5
2014-01-03
2013-05-20
Falk
No

The Macro expansion is not working.

Use the code below copied into a .asm file for testing.

  .macro test
     nop
  .endm

  .area _CODE
     test

The current output of "sdasz80 -o -l testMacro.asm" is:

ASxxxx Assembler V02.00 + NoICE + SDCC mods  (Zilog Z80 / Hitachi HD64180), page 1.

                              1 .macro test
                              2         nop
                              3 .endm
                              4
                              5 .area _CODE
   0000                       6         test
                              1
                              2
ASxxxx Assembler V02.00 + NoICE + SDCC mods  (Zilog Z80 / Hitachi HD64180), page 2.

Symbol Table

    .__.$$$.=  2710 L   |     .__.ABS.=  0000 G   |     .__.CPU.=  0000 L
    .__.H$L.=  0000 L

ASxxxx Assembler V02.00 + NoICE + SDCC mods  (Zilog Z80 / Hitachi HD64180), page 3.

Area Table

   0 _CODE      size    0   flags    0

As it can be seen above, the expected nop operation is not inserted at the position of the macro call.

No error messages are generated during the assembler call.

sdcc used is the latest version available from the repository.

sdcc -v
SDCC : gbz80/z80/z180 3.3.0 #8646 (May 20 2013) (Linux)

Discussion

  • Maarten Brock
    Maarten Brock
    2014-01-03

    • status: open --> closed-fixed
    • assigned_to: Maarten Brock
     
  • Maarten Brock
    Maarten Brock
    2014-01-03

    Fixed in SDCC 3.3.2 #8936.