diff --git a/libsrc/c128/c128-ram.s b/libsrc/c128/c128-ram.s index ebb1beecc..99a571be5 100644 --- a/libsrc/c128/c128-ram.s +++ b/libsrc/c128/c128-ram.s @@ -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 diff --git a/libsrc/c64/c64-ram.s b/libsrc/c64/c64-ram.s index 023f86529..f9e8b4f6c 100644 --- a/libsrc/c64/c64-ram.s +++ b/libsrc/c64/c64-ram.s @@ -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