]> git.sur5r.net Git - cc65/blobdiff - libsrc/mouse/mouse_unload.s
Added library reference address to lightpen driver header.
[cc65] / libsrc / mouse / mouse_unload.s
index 99745128398412b053671c50c7f169aae91a9c07..8c901848465a8daff6f74c310dbe0f8ed3f92555 100644 (file)
 
 
 _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     #<MOUSE_ERR_NO_DRIVER
-       rts
+        lda     #<MOUSE_ERR_NO_DRIVER
+        rts