[cc65] interruptor from C?

From: Karri Kaksonen <karri1sipo.fi>
Date: 2004-10-12 07:58:06
Hi,

How should I specify my interrupt routine in C?
I used to call a separate function to set up the interrupt vectors.
But now I should do it using the new interruptor somehow.
The code below does not compile.

char drawPending;

// Vertical blanking interrupt for double buffered display
void vbl(void)
{
    if (drawPending) {
        swap_buffers();
        drawPending = 0;
    }
    update_music(); // Sync music to screen refresh rate
}

asm(".interruptor _vbl,2");

------------------------------------------------------------
abccreator.c(411): Error: ASM code error: Pseudo instruction
`.interruptor' not supported

--
Regards,

Karri

----------------------------------------------------------------------
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 Oct 12 07:50:54 2004

This archive was generated by hypermail 2.1.8 : 2004-10-12 07:51:04 CEST