mirror of
https://github.com/cc65/cc65.git
synced 2024-11-18 15:05:14 +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:
parent
f9c8634346
commit
ea75fef1bf
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user