Re: [cc65] Multiple Driver INSTALL/UNINSTALL

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2009-12-11 15:39:34
On Fri, Dec 11, 2009 at 10:24:12AM +0100, Oliver Schmidt wrote:
> Given the fact that the user can call ?_install () / ?_uninstall ()
> directly I presume that a driver needs to be able to go through
> several INSTALL/UNINSTALL cycles - correct?

Yes. This wasn't true when the API has been developed, but has been made a
requirement some years ago. The problem became apparent, when statically
linked drivers were made possible. If such a driver does not reset variables
in INSTALL, malfunction is possible.

> Drivers are "invited" to modify their metadata block on INSTALL. In a
> scenario where the result may change between several INSTALLs it is
> the question if the driver can "just" conditionally patch a value A
> given in the DATA segment to a value B - or if it needs to be able to
> actively set both values A and B in case a previous INSTALL already
> set B.

It needs to actively set the values.

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 Dec 11 15:39:41 2009

This archive was generated by hypermail 2.1.8 : 2009-12-11 15:39:43 CET