dasm-assembler / dasm

Macro assembler with support for several 8-bit microprocessors

Home Page:https://dasm-assembler.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hide LIST ON

thrust26 opened this issue · comments

I am using LIST ON|OFF to avoid clutter in the listing file. The problem I am facing is, that LIST ON becomes part of the listing file.

E.g. code:

  LIST OFF
some convoluted code or macros
  LIST ON
    .byte RESULT

Output:

  LIST ON
    .byte RESULT

Would it be possible to hide LIST ON?

It might be useful in some circumstances to have at least some marker in the listing file to show that there is hidden code not being shown. Even if a single character. This suggests both list on and off should be marked even if by a single character bracket. Otherwise the listing can be deceptive and you have zero idea that there might be hidden stuff. I don't really care, but just on reading this request I thought I'd rather see something showing me what's going on.
Perhaps the LIST command could be extended with an optional symbol/comment/string, so you could go...

LIST ON Here we go
LIST OFF hide#1

If no parameter, then the LIST line is silent/hidden
If you have a parameter, then the current line is always displayed, with the parameter
Just an idea.