From bb0d6a6e39111d1b2423d21b7c6a3a4f1c23be7a Mon Sep 17 00:00:00 2001 From: cuz Date: Fri, 20 Dec 2002 20:39:24 +0000 Subject: [PATCH] Fixed a bug git-svn-id: svn://svn.cc65.org/cc65/trunk@1795 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/em/em_unload.s | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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 -- 2.39.5