Re: [cc65] __IRQFUNC_*__

From: Greg King <gngking1erols.com>
Date: 2004-09-18 10:32:19
From: Ullrich von Bassewitz; on Date: September 15, 2004, at 05:20 AM -0400
>
> On Wed, Sep 15, 2004 at 10:38:06AM +0200, Adam Dunkels wrote:
> > But, I don't really know what they do. :-)
>
> ... So, a module that wants to add an interrupt handler does no longer
> have to chain the IRQ vector, but just declare the handler function as
>
>        .condes         irq_handler, <priority>
>
>and it will be called as a subroutine in the interrupt.

You forgot the type-code:
         .condes         irq_handler, 2 [ , <priority> ]

>
> Not all platforms support this feature until now, but I expect most
> platforms to adopt it sooner or later.

In that case, that newly "standard" condes-type should have a name.
In ld65 configuration-scripts:

        type=interruptor,

In ca65 assembly code:

        .interruptor    irq_handler [ , <priority> ]

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Mon Sep 20 03:58:05 2004

This archive was generated by hypermail 2.1.8 : 2004-09-20 03:58:13 CEST