]> git.sur5r.net Git - cc65/commitdiff
Fixed a bug
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 6 Dec 2002 21:54:49 +0000 (21:54 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 6 Dec 2002 21:54:49 +0000 (21:54 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@1725 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/c128/c128-ram.s
libsrc/c64/c64-ram.s

index ebb1beecc3039e849aa1d008e9b0d8b14f9ec81d..99a571be5be2270b8a8d81a44f69ef10903507e8 100644 (file)
@@ -206,6 +206,7 @@ COPYFROM:
         beq     @L4
         sta     tmp1
 
+        ldy     #$00
 @L3:    ldx     #MMU_CFG_RAM1
         jsr     FETCH
         sta    (ptr2),y
@@ -269,7 +270,8 @@ COPYTO: sta     ptr3
         lda     (ptr3),y                ; Get bytes in last page
         beq     @L4
         sta     tmp1
-
+                    
+        ldy     #$00
 @L3:    lda     (ptr2),y
         ldx     #MMU_CFG_RAM1
         jsr     STASH
index 023f86529eabc4c67f4f642015dd824b5d340d22..f9e8b4f6c95fc2178d78f1fc08e00d515a3271f8 100644 (file)
@@ -243,7 +243,8 @@ common: ldy     #EM_COPY_COUNT+1
         sta            $01
 
 ; Transfer the bytes in the last page
-
+  
+        ldy     #$00
 @L3:    lda    (ptr1),y
         sta    (ptr2),y
         iny
@@ -255,7 +256,7 @@ common: ldy     #EM_COPY_COUNT+1
         pla
         sta     $01                     ; Restore the old configuration
         cli
-
+                    
 ; Done
 
 @L4:    rts