X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libsrc%2Fmouse%2Fmouse_unload.s;h=8c901848465a8daff6f74c310dbe0f8ed3f92555;hb=66ca781bb176cf316bb068d970fd7b3495d51e90;hp=59ec94949ab488f674662413ee557542e14eb980;hpb=4e599d372fa6ef67daf564b79b0f00816235ae88;p=cc65 diff --git a/libsrc/mouse/mouse_unload.s b/libsrc/mouse/mouse_unload.s index 59ec94949..8c9018484 100644 --- a/libsrc/mouse/mouse_unload.s +++ b/libsrc/mouse/mouse_unload.s @@ -1,7 +1,7 @@ ; ; Ullrich von Bassewitz, 2004-03-21 ; -; unsigned char __fastcall__ mouse_unload (void); +; unsigned char mouse_unload (void); ; /* Uninstall, then unload the currently loaded driver. */ @@ -13,24 +13,23 @@ _mouse_unload: - lda _mouse_drv + lda _mouse_drv pha ; Save pointer to driver - ora _mouse_drv+1 - beq no_driver ; No driver - lda _mouse_drv+1 - pha + ora _mouse_drv+1 + beq no_driver ; No driver + lda _mouse_drv+1 + pha - jsr _mouse_uninstall ; Uninstall the driver + jsr _mouse_uninstall ; Uninstall the driver - pla - tax - pla ; Get pointer to driver + pla + tax + pla ; Get pointer to driver jsr _mod_free ; Free the driver jmp return0 ; Return MOUSE_ERR_OK no_driver: - tax ; X = 0 + tax ; X = 0 pla ; Remove pushed junk - lda #