From: cuz Date: Sat, 6 Nov 2004 12:58:43 +0000 (+0000) Subject: Disable the IRQ before calling mouse_uninstall X-Git-Tag: V2.12.0~562 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ea75fef1bf99fabff9c9eaa804468ee40339f87f;p=cc65 Disable the IRQ before calling mouse_uninstall git-svn-id: svn://svn.cc65.org/cc65/trunk@3273 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/libsrc/mouse/mouse-kernel.s b/libsrc/mouse/mouse-kernel.s index 3cb9a2fa5..1017bd3a2 100644 --- a/libsrc/mouse/mouse-kernel.s +++ b/libsrc/mouse/mouse-kernel.s @@ -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