Re: [cc65] Raster interrupt handler

From: Groepaz <groepaz1gmx.net>
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 
(http://hitmen.c02.at/files/cc65/minicast_0.0.1.tar.gz) ... 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.

-- 

http://www.hitmen-console.org    http://magicdisk.untergrund.net
http://www.pokefinder.org        http://ftp.pokefinder.org

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 majordomo@musoftware.de 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