Re: [cc65] interrupt routine hooking in c

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2009-01-04 20:19:58
On Sun, Jan 04, 2009 at 01:43:23AM +0100, Groepaz wrote:
> first of all, the function pointer is 16bit and goes into two adresses, fffa
> and fffb...
>
> then you probably have to enable vblank interupts in some control register of
> the videochip, check nes docs :)

... and last but not least, the generated C code is not reentrant, so your
interrupt handler has to save registers and the zero page locations used.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun Jan 4 20:22:31 2009

This archive was generated by hypermail 2.1.8 : 2009-01-04 20:22:33 CET