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

From: Payton Byrd <plbyrd1gmail.com>
Date: 2010-04-23 19:49:13
On Fri, Apr 23, 2010 at 12:42 PM, Ullrich von Bassewitz <uz@musoftware.de>wrote:

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


You are absolutely right about using the libraries when they are available.
 My lack of experience with the C libraries, and the handy-dandy quality of
the C128 PRG, has led me more than once down the path of doing it the
C128-way.  But, I'm getting the hang of things in this C-based environment
and am starting to be somewhat productive.
-- 
Payton Byrd
<http://www.paytonbyrd.com>
<http://it.toolbox.com/blogs/paytonbyrd>

----------------------------------------------------------------------
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:49:47 2010

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