Not sure what you mean? What's the bad habit?

The idea of using .BA for plaintext BASIC files and .DO for text documents
made perfect sense in the old days. Keep in mind that a stock M100 can not
transfer binary files such as tokenized BASIC or .CO, so normally all files
transferred would be plain ASCII and you would only have tokenized files on
the M100 itself.

The problem being discussed only arose once various means of transferring
binary files without discriminating between binary and plaintext came along.

m

On Wed, Mar 1, 2023 at 3:29 PM Peter Vollan <dprogra...@gmail.com> wrote:

> See, I take the unpopular opinion that that should not be done because it
> teaches bad habits.
>
> On Wed, 1 Mar 2023 at 06:20, <bir...@soigeneris.com> 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 <m100-boun...@lists.bitchin100.com> *On Behalf Of *Brian
>> White
>> *Sent:* Wednesday, March 1, 2023 6:51 AM
>> *To:* m...@bitchin100.com
>> *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 <bir...@soigeneris.com> 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 <m100-boun...@lists.bitchin100.com> *On Behalf Of *John R.
>> Hogerhuis
>> *Sent:* Saturday, February 25, 2023 7:40 PM
>> *To:* m...@bitchin100.com
>> *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 <bir...@soigeneris.com> 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
>>
>>
>>
>>

Reply via email to