Fixed a problem in mouse_load_driver: The driver was not removed from memory

when the load failed.


git-svn-id: svn://svn.cc65.org/cc65/trunk@3748 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2006-06-04 09:48:14 +00:00
parent d93f31777c
commit c1a38ce8f4
4 changed files with 34 additions and 7 deletions

View File

@@ -162,7 +162,7 @@ _mouse_uninstall:
jsr uninstall_irq ; Disable driver interrupts
jsr mouse_uninstall ; Call driver routine
mouse_clear_ptr: ; External entry point
_mouse_clear_ptr: ; External entry point
lda #0
sta _mouse_drv
sta _mouse_drv+1 ; Clear the driver pointer
@@ -170,3 +170,4 @@ mouse_clear_ptr: ; External entry point
tax
rts ; Return zero