From: uz Date: Thu, 19 Jan 2012 11:54:26 +0000 (+0000) Subject: Fix wrong offset of irq vector byte used as on/off flag. X-Git-Tag: V2.13.3~55 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=75b83260c69a0593a7991afab26ef2c2eec9d034;p=cc65 Fix wrong offset of irq vector byte used as on/off flag. git-svn-id: svn://svn.cc65.org/cc65/trunk@5410 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/libsrc/common/interrupt.s b/libsrc/common/interrupt.s index 0b05ed820..8d4290f3e 100644 --- a/libsrc/common/interrupt.s +++ b/libsrc/common/interrupt.s @@ -1,4 +1,4 @@ -; +; ; Oliver Schmidt, 2012-01-18 ; ; void __fastcall__ set_irq (irq_handler f, void *stack_addr, size_t stack_size); @@ -44,7 +44,7 @@ .proc _reset_irq lda #$00 - sta irqvec+3 ; High byte is enough + sta irqvec+2 ; High byte is enough rts .endproc @@ -53,7 +53,7 @@ .proc clevel_irq ; Is C level interrupt request vector set? - lda irqvec+3 ; High byte is enough + lda irqvec+2 ; High byte is enough bne @L1 clc ; Interrupt not handled rts @@ -73,7 +73,7 @@ ; Call C level interrupt request handler jsr irqvec - + ; Copy back our zero page content ldx #zpspace-1 @L3: ldy zpsave,x