mirror of
https://github.com/cc65/cc65.git
synced 2024-12-26 08:32:00 +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 "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
|
||||||
|
Loading…
Reference in New Issue
Block a user