Re: [cc65] Interrupt handlers in C as part of the C library ?

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2012-01-17 23:30:15
On Tue, Jan 17, 2012 at 04:07:37PM -0500, Greg King wrote:
> If it is implemented, then funcref will need another field:
> Interrupt-safe: yes/no.

It's more complex than that. There are functions that are not reentrant, so if
the function is interrupted, the interrupt handler is safe as long is it
doesn't call exactly this function. But there are also groups of functions
that use shared variables. If one is interrupted you may not call any of the
others.

And, there are platforms that use banking or bank out the ROMs. For these
platforms, interrupt handlers must be in special memory and might have to
restore a specific bank layout.

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 Tue Jan 17 23:30:22 2012

This archive was generated by hypermail 2.1.8 : 2012-01-17 23:30:25 CET