Re: [cc65] CBM File I/O

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2007-09-20 20:28:44
On Thu, Sep 20, 2007 at 09:56:15AM -0400, Bill Katsak wrote:
> I am thinking about using the CBM file I/O functions in a project that I am
> doing. Has anyone done documentation on these? I cannot find anything on the
> web site, so I thought I would ask.

They're basically wrappers around the kernal routines. If you know how to use
CBM kernal file i/o, the cbm_... functions are almost self-explanatory.

> Also, how much bulk does using these functions add to a final executable?

That depends. Some don't add anything, for example cbm_close, which is
resolved into a direct kernal call. Some combine calls to several kernal
routines. cbm_open for example does SETLFS, SETNAM followed by OPEN. Others
are more complex, for example cbm_opendir/cbm_readdir/cbm_closedir, which
opens a channel to the device, requests the directory and parses the result.

> I
> am doing a project where space is a big consideration, and might consider
> constructing a primitive file system using direct file I/O if it would be
> smaller.

For a filesystem with similar complexity than the one used by the CBM drives,
this will probably need more code.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Thu Sep 20 20:29:00 2007

This archive was generated by hypermail 2.1.8 : 2007-09-20 20:29:03 CEST