From ea75fef1bf99fabff9c9eaa804468ee40339f87f Mon Sep 17 00:00:00 2001 From: cuz Date: Sat, 6 Nov 2004 12:58:43 +0000 Subject: [PATCH] Disable the IRQ before calling mouse_uninstall git-svn-id: svn://svn.cc65.org/cc65/trunk@3273 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/mouse/mouse-kernel.s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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