Re: [cc65] First Try of CBM File-IO

Date view Thread view Subject view

From: groepaz (groepaz_at_gmx.net)
Date: 2001-08-13 17:56:17


Hello udo,

Monday, August 13, 2001, 5:36:24 PM, you wrote:

uk> Does anybody know a trick to get around that problem?

you should _NEVER_ use that "@" method to overwrite a file (there is a
known bug in some 154x drives' kernal that sometimes causes broken
files on the disc) ... instead always scratch the old file and then
write the new one... as in: (untested, but should work)

 cbm_open(1,8,15,"s:test17.dat");cbm_close(1);
 cbm_open(2,8,2,"test17.dat,s,w");
 cbm_write(2,buf,strlen(buf));
 cbm_close(2);

 ... other than that, what you did should still work (despite of the
 drive-kernal bug) .... maybe the compiler translates the "@" sign
 into a wrong petscii code ?

whatever..... guess i am going to whipe the crap from the filesystem i
started and prepare it for the public ;=)

-- 
Best regards,
 groepaz                            mailto:groepaz_at_gmx.net


----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2001-12-14 22:05:41 CET