Re: [cc65] Filenames for POSIX functins on CBM targets

From: Karri Kaksonen <karri1sipo.fi>
Date: 2012-08-10 14:48:08
On 08/10/2012 03:10 PM, A.Fachat wrote:
> I agree with the general concept.
>
> Just... grumble... my xd2031 drive (xs1541 firmware) supports up to 9 
> drives in a unit... so try not to restrict that, its annoying enough 
> that cbm basic 4 restricts its drive number: DIR D1 works, DIR D7 not...
>
> Besides, what speaks against using the colon ":" as separator as is 
> done in the cbm drives?
>
> For example
>
> open("8#0:name", ...
>
> Could open "name" on drive 0 on unit 8. And you could even ignore the 
> drive number in the libc, as it is parsed by the drive itself. Sorry 
> if I have missed this part.
>
> André
> -- 
> Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail 
> gesendet. 

This sounds best to me so far.

"unit#drive:name" would be used on devices with the concept of "unit".

"drive:name" would work for "drives".

For the Lynx this would then be

"0:0" to "0:4095" for accessing the files on rom0.

More complex uses would then be like:

"2:\\Program Files\\World of Warcraft\\Wow.exe"

right?

--
Karri

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Fri Aug 10 14:48:25 2012

This archive was generated by hypermail 2.1.8 : 2012-08-10 14:48:28 CEST