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

In v1.09 the SAVE file name could be the empty string #98

Closed mungre closed 4 months ago

mungre commented 4 months ago

The file name in the SAVE command can be omitted. In this case, beebasm uses a file name specified on the command-line using -o. In v1.09 an empty file name worked the same as a missing file name. i.e. these were equivalent:

SAVE start,end    \ This works in all versions
SAVE "",start,end \ Works in v1.09, is broken in v1.10

This has never been allowed:

SAVE ,start,end

In the current version, beebasm tries to write to a file with an empty name, which the OS rejects. It should treat an empty name the same as a missing name.

mungre commented 4 months ago

This issue was prompted by this post on stardot.