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

From: Oliver Schmidt <ol.sc1web.de>
Date: 2012-08-10 19:16:55
Hi,

> the 8 is the (IEC) device number, with a unit number it would be
>
> LOAD "0:*",8,1
>
> and this IS very uncommon. you wont see anyone typing this out on a c64 :)
>
> ..... and now i realised "unit" is ambigous in this context, and i
> misunderstood you :) (its really used for both the device- and the drive-
> number, depending on context)

Okay, let's try to sort this out. I originally started to call the
beast unit because the variable I want to get rid of is called
_curunit. Now I seem to understand that I'm talking about the device
number.

So rephrasing it:

My current proposal is to re-interpret the filename

"1:name"

as not refering to drive 1 on/in the current device but rather as
refering to device 1. To my understanding this cannot cause any issue
with filenames because "1:" would have been treated by the device
specially anyway.

The obvious restricting is that it isn't possible anymore to refer to
drive 1 this way anymore. To do this one would have to use

"8:1:name"

which would refer to drive 1 on/in device 8.

Regards,
Oliver
----------------------------------------------------------------------
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 19:17:16 2012

This archive was generated by hypermail 2.1.8 : 2012-08-10 19:17:19 CEST