Re: [cc65] Please be patient... More questions

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2010-04-23 19:42:40
On Thu, Apr 22, 2010 at 04:16:02PM -0500, Payton Byrd wrote:
> I'm wondering if there already exists a library of C128
> kernel routines that are created in such a manner as your second example?  I
> know it's best to use the standard libraries where possible, but for
> completeness for the individual platforms it seems that such libraries for
> each target machine would be invaluable.  It would definitely aid those of
> us who are not quite adept at assembler but have lots of experience with
> c-based languages to get the most out of the cc65 stack.  If the answer is
> that nobody has created such a library for the c128 then I'll volunteer to
> do so as I think it'd be a great learning experience.

Just have a look at the cbm.h header file. Quite a lot of the functions are
there. 

But as a general rule you should use kernal level function only if there is a
special reason for doing so. These functions are non portable and often on a
rather low abstraction level. So for example, instead of calling SCRORG, use
screensize() from conio.h. Instead of OPEN, use cbm_open() or even open(),
which is portable among most supported platforms.

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 Fri Apr 23 19:42:45 2010

This archive was generated by hypermail 2.1.8 : 2010-04-23 19:42:47 CEST