Re: [cc65] scratch files on C64 or file spec and drive numbers

From: Greg King <greg.king41verizon.net>
Date: 2008-09-25 00:10:55
From: "Groepaz"; on Wednesday, September 24, 2008; at 11:31 AM -0400
>
> On Mittwoch 24 September 2008, Ullrich von Bassewitz wrote:
> >
> > And, it would clash with devices that *do* support directories and
> > partitions.  At least, the implementation would be quite complex.
>
> I'd simply implement them a bit differently; and, use a colon to separate
> the device number, ie.,
>
> 8:the/path/file
>
> And now, since that is a bit annoying to parse (the number could have one
> or two digits), I'd simply use letters instead, "A" representing device 0,
> etc.
>
> I:/the/path/file
>
> That's almost trivial to parse, with little overhead.
>
> Also, I'd totally ignore the drive numbers used on CBM dual-drives.
> That's such a special case, it can be done with special-case handling.

Creative Micro Designs (and compatible) drives use those numbers to choose
partitions.  Partitions are a useful feature.  So, it isn't _that_ "special"
a case.

But, letters do provide a simple way to tell the difference between
drives/partitions and devices/units.

"k:2//8/:my/file.prg"

(In case anybody is wonderring,  the first slash says, "this is a path."
The second one says, "the path starts at the root directory."  The third one
separates the path from the file-name.  And, the fourth one is a part of the
file-name [that second colon tells the DOS what the slashes are doing]!)

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Thu Sep 25 00:11:00 2008

This archive was generated by hypermail 2.1.8 : 2008-09-25 00:11:02 CEST