Renamed _em_deinstall -> _em_uninstall, emd_deinstall -> emd_uninstall.

Make _em_install and _em_uninstall user callable.


git-svn-id: svn://svn.cc65.org/cc65/trunk@1962 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2003-02-10 23:01:13 +00:00
parent 97e7ce86ae
commit ca71d94e00
3 changed files with 23 additions and 31 deletions

View File

@@ -5,6 +5,8 @@
; /* Unload the currently loaded driver. */
.import em_clear_ptr
.include "em-kernel.inc"
.include "em-error.inc"
.include "modload.inc"
@@ -14,18 +16,13 @@ _em_unload:
ora _em_drv+1
beq no_driver ; No driver
jsr _em_deinstall ; Deinstall the driver
jsr emd_uninstall ; Deinstall the driver
lda _em_drv
ldx _em_drv+1
jsr _mod_free ; Free the driver
lda #0
sta _em_drv
sta _em_drv+1 ; Clear the driver pointer
tax
rts ; Return zero
jmp em_clear_ptr ; Clear the driver pointer, return zero
no_driver:
tax ; X = 0