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

From: <silverdr1wfmh.org.pl>
Date: 2012-08-12 00:42:51
On 2012-08-12, at 00:27, Groepaz wrote:

>>>> the @ sign means "overwrite"
>>>> 
>>>> save "test",8
>>>> save "test",8    (again - gives "file exists")
>>>> save "@:test",8   will overwrite the existing file
>>> 
>>> save "@test",8 is enough. Your "save @:test",8 is equivalent to save
>>> "@0:test",8, which is something different on dual-disk drives (the first
>>> version writes to the last accessed drives, your version always to drive
>>> 0).
>> 
>> Which was one of the ways to avoid the (in)famous bug.
> 
> not at all, the bug is completely unrelated to the drive number.

Always using drive number allowed to avoid the bug. I vaguely recall verifying this (after reading about this method in a magazine) using the triggering method published there too.

-- 
SD!

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun Aug 12 00:43:00 2012

This archive was generated by hypermail 2.1.8 : 2012-08-12 00:43:04 CEST