Re: [cc65] C64, Interrupt and in need of an example

From: Ullrich von Bassewitz <>
Date: 2008-02-28 15:02:17

On Thu, Feb 28, 2008 at 01:39:51AM +0100, Markus Stehr wrote:
> Could someone please provide me with an usable example for an interrupt
> for the C64? I have been reading the manual and asked Google for 2 hours
> now and i am as clueless as i was 2 hours ago.

The file libsrc/dbg/dbgsupp.s contains code to hook the BRK vector and call a
C function. Most of it can be used to hook the IRQ vector.

There's also condes type 2, which gets automagically called in case of an IRQ.
If you want to call C code from such a routine, you will need to save the zero
page segment used (as in dbgsupp.s). See libsrc/runtime/callirq.s.

It depends on your timing requirements which one of the two is preferable.



Ullrich von Bassewitz                        
To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Thu Feb 28 15:02:27 2008

This archive was generated by hypermail 2.1.8 : 2008-02-28 15:02:30 CET