From: uz Date: Sun, 4 Mar 2012 19:25:22 +0000 (+0000) Subject: The IRQ handler needs to save the registers. By Stefan Haubenthal. X-Git-Tag: V2.14~489 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4f6110604326357d378f373b917b92c7ad92997e;p=cc65 The IRQ handler needs to save the registers. By Stefan Haubenthal. git-svn-id: svn://svn.cc65.org/cc65/trunk@5574 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/libsrc/atmos/crt0.s b/libsrc/atmos/crt0.s index 15aa9509a..bc11ce5d9 100644 --- a/libsrc/atmos/crt0.s +++ b/libsrc/atmos/crt0.s @@ -133,7 +133,17 @@ L2: lda zpsave,x IRQStub: cld ; Just to be sure + pha + txa + pha + tya + pha jsr callirq ; Call the functions + pla + tay + pla + tax + pla jmp IRQInd ; Jump to the saved IRQ vector ; ------------------------------------------------------------------------