stardot / beebasm

A portable 6502 assembler with BBC Micro style syntax
http://www.retrosoftware.co.uk/wiki/index.php/BeebAsm
GNU General Public License v3.0
84 stars 26 forks source link

1.10rc2: -D SYMBOL fails with default or negative value #83

Closed regregex closed 2 years ago

regregex commented 2 years ago

1.10rc2 is not accepting a symbol definition from the command line without an explicit, non-negative value. 1.09 is known good. README.md defines the default value of symbol definitions to be -1, and both default and explicit definitions are rejected:

$ beebasm --help
beebasm 1.10rc2
...

$ beebasm -i edos.6502 -D _O2791S -D _SWRAM
Invalid -D expression: _O2791S

$ beebasm -i edos.6502 -D _O2791S=-1 -D _SWRAM
Invalid -D expression: _O2791S=-1

$ beebasm -i edos.6502 -D _O2791S=1 -D _SWRAM
Invalid -D expression: _SWRAM

$ beebasm -i edos.6502 -D _O2791S=1 -D _SWRAM=1
To coupon =&3746  Code size =&37FD
mungre commented 2 years ago

Oops! Thanks for the report. This is fixed by #84.

regregex commented 2 years ago

Woah, was about to submit a fix but you beat me to it! Great work, thanks.