]> git.sur5r.net Git - cc65/commitdiff
Fixed a bug: Because of a wrong label position the code that cleared the
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 18 Nov 2002 18:54:36 +0000 (18:54 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 18 Nov 2002 18:54:36 +0000 (18:54 +0000)
BSS was skipped.

git-svn-id: svn://svn.cc65.org/cc65/trunk@1540 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/common/modload.s

index b87b98581dbab08fc6ec44615831547ef0a7e507..fd4b5420325c4ce6284b5b5d6b39c116b314386a 100644 (file)
@@ -71,7 +71,7 @@ InputByte       = Header                ; Byte read from input
 ; Relocation
 RelocVal        = Header + 1            ; Relocation value
 
-.data      
+.data
 Read:   jmp     $FFFF                   ; Jump to read routine
 
 .rodata
@@ -469,7 +469,7 @@ CalcSizes:
 ; Control structure is complete now. Clear the bss segment.
 ; bzero (bss_addr, bss_size)
 
-        lda     Module
+GotMem: lda     Module
         add     TPtr
         pha
         lda     Module+1
@@ -485,7 +485,7 @@ CalcSizes:
 ; code+data segment is still in TPtr.
 ; C->read (C, C->module, H.tlen + H.dlen)
 
-GotMem: jsr     PushCtrl
+        jsr     PushCtrl
         lda     Module
         ldx     Module+1
         jsr     pushax