]> git.sur5r.net Git - cc65/commitdiff
Changed function prototype
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 21 Jun 2002 16:26:15 +0000 (16:26 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 21 Jun 2002 16:26:15 +0000 (16:26 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@1316 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/common/modfree.s

index cc879ab086f31217a48f0cda9fa9d6b9b0224a01..762e0bb94aa9913ab8f9828674ff9c851ef66bd2 100644 (file)
 ;*****************************************************************************/
 
 
-
-        .include        "modload.inc"
-
+        .export         _mod_free
         .import         _free
-        .importzp       ptr1
-
-;------------------------------------------------------------------------------
-; mod_free: Free a loaded module
-
-.code
-_mod_free:
-        sta     ptr1
-        stx     ptr1+1                          ; Save parameter
-
-        ldy     #MODCTRL_MODULE + 1
-        lda     (ptr1),y
-        tax
-        dey
-        lda     (ptr1),y                        ; Load module pointer
 
-        jmp     _free                           ; Free the module memory
+_mod_free       = _free                 ; Just free the memory