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
83 stars 26 forks source link

Don't allow macros with names starting with mnemonics except when -w is used #85

Open ZornsLemma opened 1 year ago

ZornsLemma commented 1 year ago

As discussed in https://github.com/stardot/beebasm/issues/80, unless -w is used we should disallow macro definitions which define a macro starting with a mnemonic, as attempts to invoke it are likely to be misinterpreted as a use of the relevant mnemonic. (This assumes -w has been extended to always require a space after the mnemonic; this is probably going to be implemented soon under https://github.com/stardot/beebasm/pull/81. Without this change other problems probably occur with such macro names.)

mungre commented 8 months ago

81 is complete, -w always requires a space after a mnemonic.