[cc65] Driver interrupts (was: tgi_init functionality change request)

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2004-11-06 14:58:33
On Thu, Nov 04, 2004 at 09:22:54AM -0500, Greg King wrote:
> An IRQ entry point in TGI drivers would be useful on other platforms, too.

After thinking about it, I found this is true for most other drivers as well.
For example, one of the C64 joystick drivers hooks the interrupt. So I will
add this as a standard feature to most drivers. Please note that this feature
is available on platforms only, that support the interruptor table in the
startup code. Otherwise the driver entry will never be called.

To start with, I've changed the API for the joystick drivers to include an IRQ
entry point. The IRQ vector may be set to zero in a driver, if this particular
driver doesn't need an interrupt. I've updated all available drivers to add
this dummy vector. If you're interested in a particular platform, please check
the driver if it still works.

In the process, I've updated the c64-hitjoy driver to use the new interrupt
entry instead of hooking the interrupt itself. Could someone with access to
this hardware (groepaz?) please check the driver, if it works ok? Thanks a lot
in advance!

I will change the TGI drivers in a next step.

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 Sat Nov 6 14:58:36 2004

This archive was generated by hypermail 2.1.8 : 2004-11-06 14:58:45 CET