Re: [cc65] Raster interrupt handler

From: Groepaz <>
Date: 2009-04-23 15:39:47
On Donnerstag 23 April 2009, Carlos wrote:
> Hi,
> I need to code a c64 raster interrupt handler, the problem is that my
> program is all in C and i know that's not possible to do it in this
> language. I suppose i have to do it in assembler and call this function
> from my C program. There are some tutorial or sample how to do it?
> Thanks,

you may want to look at my minicast program 
( ... it uses a raster 
irq in assembler.

but generally its rather easy, write your irq in a seperate asm file, call the 
function "_irq", put ".export _irq" into the asm file and then make a 
prototype in a header file "void irq(void)" and link the compiled asm to your 
c code.


Der Vorteil der Klugheit besteht darin, dass man sich dumm stellen kann. Das 
Gegenteil is schon schwieriger. 
<Kurt Tucholsky>

To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Thu Apr 23 15:40:00 2009

This archive was generated by hypermail 2.1.8 : 2009-04-23 15:40:02 CEST