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

From: Oliver Schmidt <ol.sc1web.de>
Date: 2012-01-21 13:40:44
Hi,

> To shorten the discussion: Just do it.

Done - see the declarations down below from 6502.h. And after a fix
from the Uz the implementation may even work ;-) I'd would however
appreciate feedback if it actually does for you...

Regards,
Oliver

/* Possible returns for irq_handler() */
#define IRQ_NOT_HANDLED	0
#define IRQ_HANDLED	1

typedef unsigned (*irq_handler) (void);
/* Type of the C level interrupt request handler */

void __fastcall__ set_irq (irq_handler f, void *stack_addr, size_t stack_size);
/* Set the C level interrupt request vector to the given address */

void reset_irq (void);
/* Reset the C level interrupt request vector */
----------------------------------------------------------------------
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 Jan 21 13:40:51 2012

This archive was generated by hypermail 2.1.8 : 2012-01-21 13:40:56 CET