breakintoprogram / agon-bbc-basic

Official AGON QUARK Firmware: BASIC Interpreter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bad Program reported for plain text .BAS files

stevesims opened this issue · comments

I ran into an issue where attempting to load a plain text .BAS resulted in me seeing a Bad program error.

On investigation I found this was caused by the file having LF character line endings. Changing the file to use CRLF fixed the issue.

As many modern computers and editors now default to using LF only for line endings BASIC should really support that.

Fixed - now handles files with CR/LF, LF/CR and with no trailing line at end.

Also rolled into agon-bbc-basic-adl.