MOUNT command fails in special cases: file name longer than 8.3
Opened this issue · 1 comments
When one tries to LOAD a file whose name is longer than 14 characters (including the last ".TAP") , as Ryan and Adam have found, the ROM doesn't send the LOAD "tpi:..." command but a regular LOAD instead, trying to LOAD wherever is mounted before, if anything. Everything goes wrong from there.
- Reformat all filenames to fit in the 10.3 length. Longer filenames are permissable but can only be mounted with the "tpi:*nn" shortcut
- Filename should not contain spaces nor any "special" characters aside from Aa-Zz, 0-9, _ or -.
- Directory names should be 8 characters or less. Same limitations as filenames
@factus10 fix all filenames and dirnames in SDCard.zip
I just talked this with Gustavo, and thing is that, if the filename in LOAD "tpi:..." is shorter than 4 characters, or larger than 8.3, then this call is processed by the standard ROM in the usual way, i.e. a LOAD command. The 8.3 was defined to provide compatibility with older filenames in DOS style. Gustavo added a couple characters, so filenames can be as much as 10.3 as already tried and tested.
So, the official supported filenames length for LOAD "tpi:..." should be 8.3; anything longer than typed by the user will be processed as a regular LOAD command. If users find they want/need to use longer filenames, they can do so using the abbreviated or shortcut method of:
LOAD "tpi:&nn",
where nn is the index in the DIR command. Notice Gustavo also recommended changing the "*" for the "&" due to compatibility issues with newer commands supported by the ROM and not yet implemented. As the shortcuts are not widely used yet, and is a minor change, I believe we should implement it
This changes will also be reflected in the (upcoming) v1.1c