Re: Projects that take Commodore computers to 2021

From: Jim Brain <brain_at_jbrain.com>
Date: Mon, 13 Dec 2021 14:46:23 -0600
Message-ID: <f86b953f-020a-919f-f587-63d20abddac9_at_jbrain.com>
On 12/13/2021 1:26 PM, Claudio Sánchez wrote:
> El 13/12/2021 a las 19:15, Jim Brain escribió:
>> On 12/13/2021 12:45 PM, Claudio Sánchez wrote:
>>>
>>> El 12/12/2021 a las 16:02, Jim Brain escribió:
>>>> On 12/12/2021 6:11 AM, Claudio Sánchez wrote:
>>>>> But what about a FAT file system implementation 
>>>>
>>>> All the sd2iec-based drives do FAT (16 and 32), and I think 1541U 
>>>> does as well.
>>>
>>> Ok, but is the FAT filesystem accessible natively from the Commodore 
>>> computer? Or is the the FAT support an underlying layer to put the 
>>> disk image files on?
>>
>> The FAT fs is natively accessible.  You can store a multi-megabyte 
>> file in the card and access it directly with open commands.  Also, I 
>> wrote the native FS rel file support, which I believe will handle 
>> positioning to any byte in a 2^32-1 sized file
>
>
> The thing about SEQ and REL files is that they are handled by CBM DOS, 
> aren't they?

Not in native.

If you open a file in native fs, you can literally store anything you 
want in there, WAV or MP3 or DOC or XML, go for it.  You can even choose 
your extension.   The sd2iec DOS does not make any assumptions about the 
content of the data in the non REL files, as CBM DOS doesn't either.  
The computer uses 2 bytes at the beginning of a PRG file for load 
address, but that's a decision by the computer, not the drive.

The only thing REL files do special in native mode is use the first byte 
as the record length. If you want to manage your own record length, just 
open the file as PRG/SEQ and use the position command to reference any 
byte in the 2^32-1 file size.

I know Jack go so mad at Peddle for the 2040 design, but the idea of 
making smart peripherals is delivering benefits even today.

>
> What about writing to the filesystem directly? Not as SEQ, PRG or REL 
> files, but as any format (again, examples) like TXT, WAV or whatever 
> the software defines? Sort of what DOS in a x86 would do, I mean.

Already possible.

Jim
Received on 2021-12-13 22:03:05

Archive generated by hypermail 2.3.0.