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

Macro # arguments

andrew-davie opened this issue · comments

Would be useful to me for macros to have access to the # of arguments passed.
This would allow conditional parameters, effectively.

 MAC WHICH
  jsr {1}
  IF {#} > 1
    jsr {2}
  ENDIF
ENDM
; usage
 WHICH one
 WHICH one,two