]> git.sur5r.net Git - cc65/commitdiff
Disable the IRQ before calling mouse_uninstall
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 6 Nov 2004 12:58:43 +0000 (12:58 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 6 Nov 2004 12:58:43 +0000 (12:58 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@3273 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/mouse/mouse-kernel.s

index 3cb9a2fa5dc6fed78e298bddca8761f456c7b977..1017bd3a24b3a348285bc2ef9595964f3fc30a80 100644 (file)
@@ -133,11 +133,11 @@ copycb: lda     (sreg),y
 ; /* Uninstall the currently loaded driver. Returns an error code. */
 
 _mouse_uninstall:
-        jsr     mouse_uninstall         ; Call driver routine
-
        lda     #$60                    ; RTS opcode
        sta     mouse_irq               ; Disable IRQ entry point
 
+        jsr     mouse_uninstall         ; Call driver routine
+
 mouse_clear_ptr:                        ; External entry point
         lda     #0
         sta     _mouse_drv