COM: does not see any filename, it only sees the content bytes.
This is totally unrelated to storing a file in the ram filesystem.
On 3/1/23 08:44, [email protected] wrote:
I also tried loading a .DO named as .BA through BASIC, i.e. load
"com:98n1e" and that worked fine. Seems to me that if it were a man ROM
issue the same problem would happen this way. Also, the TS-DOS
disassembly shows that it changes it’s behavior based on filetype extension.
Jeff Birt
*From:* M100 <[email protected]> *On Behalf Of *Brian White
*Sent:* Wednesday, March 1, 2023 6:51 AM
*To:* [email protected]
*Subject:* Re: [M100] - Backpack
I don't think it's ts-dos, it's the main rom. The main rom and all the
tpdd clients basically have to trust the file name. If it's declared as
a .ba, then the bytes are copied verbatim and then later interpreted
according to the rules of parsing a .ba. If the contents are not .ba,
kablooey.
bkw
On Tue, Feb 28, 2023, 8:11 PM <[email protected]
<mailto:[email protected]>> wrote:
I did some more testing and discovered that John is absolutely
correct. Previously when I had tried to load a .BA which was really
a .DO it made it about 3-4 line in and then stopped. This led me to
believe it was an issue I have seen on other computer; when loading
an ASCII file over serial the computer will tokenize the line when
the CR is encountered. Just like it had been typed in on the
keyboard. For these systems you have to add a 2 second or so delay
after each line to allow for tokenization.
TSDOS does its own thing, like John says, and really makes a mess of
it.
Jeff Birt
*From:* M100 <[email protected]
<mailto:[email protected]>> *On Behalf Of *John R.
Hogerhuis
*Sent:* Saturday, February 25, 2023 7:40 PM
*To:* [email protected] <mailto:[email protected]>
*Subject:* Re: [M100] - Backpack
A side note but the reason files misnamed as BA cause a problem is
that tsdos will load them into the BASIC program region verbatim
and treat the ASCII bytes as parts of binary formatted line numbers
and tokens among other problems, ultimately causing a corrupted RAM
file system.
It was the convention on the old Club100 library to name them this
way but it's now a bad practice.
-- John.
On Sat, Feb 25, 2023, 5:30 PM <[email protected]
<mailto:[email protected]>> wrote:
Yes, someone already wrote such a program and shared it. If you
just got a Backpack Drive Plus it is already on the SD card. You
can also download it from:
https://github.com/Jeff-Birt/Backpack/tree/main/User_Programs
<https://github.com/Jeff-Birt/Backpack/tree/main/User_Programs>
--
bkw