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:
parent
a0b79c7f49
commit
bb0d6a6e39
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user