1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-25 17:29:50 +00:00

Fixed a bug

git-svn-id: svn://svn.cc65.org/cc65/trunk@1795 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2002-12-20 20:39:24 +00:00
parent a0b79c7f49
commit bb0d6a6e39

View File

@ -9,9 +9,6 @@
.include "em-error.inc" .include "em-error.inc"
.include "modload.inc" .include "modload.inc"
.import return0
_em_unload: _em_unload:
lda _em_drv lda _em_drv
ora _em_drv+1 ora _em_drv+1
@ -23,7 +20,12 @@ _em_unload:
ldx _em_drv+1 ldx _em_drv+1
jsr _mod_free ; Free the driver jsr _mod_free ; Free the driver
jmp return0 lda #0
sta _em_drv
sta _em_drv+1 ; Clear the driver pointer
tax
rts ; Return zero
no_driver: no_driver:
tax ; X = 0 tax ; X = 0