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

From: Spiro Trikaliotis <ml-cc651trikaliotis.net>
Date: 2012-08-11 21:18:09
Hello,

* On Sat, Aug 11, 2012 at 07:23:12PM +0200 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).

> and as always, the "@" introduces quirky behavior (its so buggy that it may 
> even result in data loss) and shouldnt be used in any case IMHO

Yes. That's true for the 2031, 1540, 1541, 1570 and 1571 drives. Later
versions of the 1541 have it fixed (I am not sure about the 1571 with
-05 ROM), as have drives with JiffyDOS - but I would not rely on it in
non-IEEE world (and even there, the 2031 is IEEE but his this problem).

> - however, 
> since like 0: it is interpreted/handled by the drive, i dont like the idea of 
> adding extra code to filter it out either :)

Same here.

Regards,
Spiro.

-- 
Spiro R. Trikaliotis
http://www.trikaliotis.net/
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sat Aug 11 21:18:39 2012

This archive was generated by hypermail 2.1.8 : 2012-08-11 21:18:42 CEST