1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-26 05:29:30 +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 "modload.inc"
.import return0
_em_unload:
lda _em_drv
ora _em_drv+1
@ -23,7 +20,12 @@ _em_unload:
ldx _em_drv+1
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:
tax ; X = 0