hlorenzi / customasm

💻 An assembler for custom, user-defined instruction sets! https://hlorenzi.github.io/customasm/web/
Apache License 2.0
719 stars 56 forks source link

New #noemit directive to reduce symbol dump spam #138

Closed bwburnsides closed 2 years ago

bwburnsides commented 2 years ago

Here is my initial implementation of a #noemit directive, it may take on or off. Symbols which are declared after a #noemit on, but before #noemit off will not be included in the symbol dump of that assembly. So for example, in the following snippet, FOO and QUX will be in the symbol dump, but BAR and BAZ will not be.

FOO= 0
#noemit on
BAR = 1
BAZ = 2
#noemit off
QUX = 3