Jump to content

Open Club  ·  64 members

DASM
IGNORED

Trailing comma when declaring data


Karl G

Recommended Posts

It took me a bit to track down an obscure bug in my code, which turned out to be caused by accidentally having a trailing comma in a line of data.

 

It seems that when DASM encounters a trailing comma for a line of data, it inserts a NUL at the end. Is this intended/expected behavior?

 

Of course, the best workaround is to not have trailing commas in lines of data, but sometimes mistakes happen when converting a large amount of data. My personal preference would be to have it either ignore a trailing comma (maybe with a warning), or have the assembler bail, yelling at me for my mistake.

 

Thoughts?

Link to comment
Share on other sites

  • 3 weeks later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...