From: cuz Date: Fri, 20 Dec 2002 20:39:24 +0000 (+0000) Subject: Fixed a bug X-Git-Tag: V2.12.0~1876 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bb0d6a6e39111d1b2423d21b7c6a3a4f1c23be7a;p=cc65 Fixed a bug git-svn-id: svn://svn.cc65.org/cc65/trunk@1795 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/libsrc/em/em_unload.s b/libsrc/em/em_unload.s index d9cb53a9f..8c47ef061 100644 --- a/libsrc/em/em_unload.s +++ b/libsrc/em/em_unload.s @@ -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