From 75b83260c69a0593a7991afab26ef2c2eec9d034 Mon Sep 17 00:00:00 2001 From: uz Date: Thu, 19 Jan 2012 11:54:26 +0000 Subject: [PATCH] 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 --- libsrc/common/interrupt.s | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.39.5