]> git.sur5r.net Git - cc65/commitdiff
Fixed a bug
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 5 Apr 2004 13:36:10 +0000 (13:36 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 5 Apr 2004 13:36:10 +0000 (13:36 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@2975 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/runtime/callirq.s

index e824b62df846c834002b60a79cfddff4f5dbe01c..1fd376f8bd0c1411b30b42edb4a78f0e44a58f24 100644 (file)
@@ -38,10 +38,10 @@ callirq:
         ldy     #.lobyte(__IRQFUNC_COUNT__*2)
 callirq_y:
         dey
-        lda     __IRQFUNC_TABLE__+1,y
+        lda     __IRQFUNC_TABLE__,y
         sta     jmpvec+2                ; Modify code below
        dey
-        lda     __IRQFUNC_TABLE__+0,y
+        lda     __IRQFUNC_TABLE__,y
         sta     jmpvec+1                ; Modify code below
                sty     index+1                 ; Modify code below
 jmpvec: jsr            $FFFF                   ; Patched at runtime