Re: [cc65] Apple II Libraries

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2003-05-02 00:04:24


On Thu, May 01, 2003 at 05:49:31PM -0400, CHRIS wrote:
> Sorry for the name typo; my cousin's name is Ulrik and
> I keep typing that instead..

No problem, I'm bad in names myself:-)

> I was thinking about it more from the standpoint of how
> one might go about creating a whole new target library
> for CC65.  CC65 itself has routines like, for example,
> the printf() function, but the platform/target library must
> supply its own putc() function (for example) as that would
> platform dependant.  Or am I incorrect?

You're partially correct. All C file I/O functions are actually platform
independent (including putc). These functions are based on a layer of POSIX
compatible I/O functions, which are platform dependent (but a lot simpler). So
what you have to write to make printf/fprintf/putc and friends work are the
following functions:

        * open
        * close
        * write
        * read

> When (or in which version of CC65) do you expect to have the new rs232
> driver model in place?

There is no specific target date, but it will be in the next major cc65
version (2.10). I've already started to write the code; the current snapshot
contains the header file with the first draft for the new API. But there's no
driver reference implementation for now. The driver skeleton will look similar
to the extended memory and graphics drivers, so you may want to have a look at
those.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz_at_musoftware.de
----------------------------------------------------------------------
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 : 2003-05-02 00:04:38 CEST