Re: [cc65] Raster interrupts on Plus/4

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2015-03-13 18:16:46
Hi!

On Fri, Mar 13, 2015 at 07:05:26PM +0200, Janne Peräaho wrote:
> I'm using old version of the cc65 (version 2.12.0) and it's missing the
> set_irq function, so no. Just utilizing SEI() and CLI() to attach my
> interrupt routine.
>
> Any attempt to use local variables in the interrupt routine crashed
> the system immediately.

This is a reentrancy problem. If you aren't using set_irq, you will have to
save the complete zero page used by the generated code. See here:

        http://www.cc65.org/faq.php#IntHandlers

Newer versions do have better support for interrupts, so this might be an
option.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
Encrypted email preferred                          PGP Key-Id: 29D93B10
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Fri Mar 13 18:16:50 2015

This archive was generated by hypermail 2.1.8 : 2015-03-13 18:16:52 CET