Re[4]: [cc65] Probleme mit File-IO ( die 2te )

Date view Thread view Subject view

From: groepaz (groepaz_at_gmx.net)
Date: 2001-08-24 22:50:39


Hello Marc,

Friday, August 24, 2001, 10:25:36 PM, you wrote:

MBR> The current implementation (which is not finished nor in the stable
MBR> release and just for CBM machines) is just functions that are modeled 
MBR> after the BASIC commands.

MBR> There is cbm_(load|save|open|close|read|write).

OH! ... i thought there were functions around for direct-access
already aswell!? (or am i mixing this up with the atari lib? ;=))

MBR> They are written in C and rely on wrapper functions to the kernel 
MBR> routines that are written in assembler. Most of the wrapper code was 
MBR> done by Ullrich.

ok, pretty much the same state as my stuff then i guess (whole lot of
short and simple wrappers to kernal that are written in asm plus the
actual filesystem that is written in C)

MBR> And like the BASIC commands there is this problem with opening 
MBR> non-existant files for reading. I haven't commented this in the include 
MBR> file because that should be fixed. This stuff is still "inofficial" and 
MBR> I think the API isn't 100% stable. (I want to change the parameters of 
MBR> cbm_load and cbm_save)

yeah thats one major problem in my implementation aswell.... the only
way to get around it (if you are using kernal i/o) seems to be
that before you open ANY file, check if the file exists. (which again
can be checked by opening the file for reading, read one byte and then
check ST) ... it seems to introduce less troubles than waiting for the
error to arise (and it also works without having to use the
command-channel for error checking).

-- 
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