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

PUTBASIC requires a space which BBC BASIC's own tokeniser doesn't #65

Open ZornsLemma opened 2 years ago

ZornsLemma commented 2 years ago

Thanks to mikroman for reporting this in the discussion of https://github.com/stardot/beebasm/issues/64.

The attached zip file contains a test case. The generated BASIC program fails when run, but re-typing the line at the BASIC prompt and re-running works fine: putbasic-problem.zip Screenshot at 2021-10-29 02-58-43

Adding a space before "MOD" allows PUTBASIC to tokenise this correctly, but I don't think it should be necessary if BBC BASIC doesn't require it.