1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-25 17:29:50 +00:00

Disable the IRQ before calling mouse_uninstall

git-svn-id: svn://svn.cc65.org/cc65/trunk@3273 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2004-11-06 12:58:43 +00:00
parent f9c8634346
commit ea75fef1bf

View File

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