Re: [cc65] Raster interrupt handler

From: Groepaz <groepaz1gmx.net>
Date: 2009-04-23 15:53:16
On Donnerstag 23 April 2009, Ullrich von Bassewitz wrote:
> On Thu, Apr 23, 2009 at 03:33:10PM +0200, Carlos wrote:
> > 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?
>
> Isn't the raster interrupt handler called directly by the IRQ vector? If
> so, there's no need to call it from C. Just write it in assembler as you
> would do in an assembler only program.

mmmh now you say it.... indeed, you could do the entire setup in C, and simply 
point the irq vector to your asm routine :) i'd still do the setup in asm 
though, simply to have it all in one file (and because i could cutnpaste it 
from somewhere =P).

-- 

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

Life's tough, get a helmet.

----------------------------------------------------------------------
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 16:07:20 2009

This archive was generated by hypermail 2.1.8 : 2009-04-23 16:07:22 CEST