2 ; Ullrich von Bassewitz, 2004-03-21
4 ; unsigned char __fastcall__ mouse_unload (void);
5 ; /* Uninstall, then unload the currently loaded driver. */
8 .include "mouse-kernel.inc"
17 pha ; Save pointer to driver
19 beq no_driver ; No driver
23 jsr _mouse_uninstall ; Uninstall the driver
27 pla ; Get pointer to driver
28 jsr _mod_free ; Free the driver
29 jmp return0 ; Return MOUSE_ERR_OK
33 pla ; Remove pushed junk
34 lda #<MOUSE_ERR_NO_DRIVER