Re: [cc65] Joystick Example Code

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2004-10-14 10:23:16
On Thu, Oct 14, 2004 at 11:23:58AM +0300, Karri Kaksonen wrote:
> On Fri, 8 Oct 2004, Ullrich von Bassewitz wrote:
> > Another possibility is to load the driver
> > yourself and call joy_install instead of joy_load.
>
> Is there a way to create a build where the joystick driver is
> already loaded in the kernel?

I'm not sure what you mean with "kernel", because cc65 generates programs. But
assuming you mean "program" instead of "kernel", then yes, loadable drivers
can be linked statically to the program. This is the way, platforms without
file I/O are currently using these drivers.

See the documentation for the co65 utility for more information. There's a
complete example on how to convert and link a graphics drivers.

> I was thinking about the Lynx target where you don't have the
> functions open, read and close yet. So I cannot link joy_load
> in the system but I could call joy_install if the joy_load could
> be simulated somehow.

You don't necessarily need open, read and close. Any other method to access
data will also do. Drivers can be loaded from ROM if needed and removed if RAM
gets scarce.

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 Oct 14 10:23:19 2004

This archive was generated by hypermail 2.1.8 : 2004-10-14 10:23:28 CEST