From d8d7d878e4100923669a107f8b6a4f3b64cbb987 Mon Sep 17 00:00:00 2001 From: Paul Gardner-Stephen Date: Mon, 6 May 2019 07:09:46 +0930 Subject: [PATCH] fix preservation of I flag in memory move routines. --- c64/basic/under_rom_routines.s | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/c64/basic/under_rom_routines.s b/c64/basic/under_rom_routines.s index 4cf38591..eebaaa16 100644 --- a/c64/basic/under_rom_routines.s +++ b/c64/basic/under_rom_routines.s @@ -70,6 +70,7 @@ shift_mem_up_routine: ;; This routine assumes the pointers are already pointed ;; to the end of the areas, and that Y is correctly initialised ;; to allow the copy to begin. + php jsr memmap_allram smu1: lda (memmove_src),y @@ -80,7 +81,7 @@ smu1: dec memmove_dst+1 dec memmove_size+1 bne smu1 - + plp jmp memmap_normal shift_mem_down_routine: @@ -90,6 +91,7 @@ shift_mem_down_routine: ;; This routine assumes the pointers are already pointed ;; to the end of the areas, and that Y is correctly initialised ;; to allow the copy to begin. + php jsr memmap_allram smd1: lda (memmove_src),y @@ -100,7 +102,7 @@ smd1: inc memmove_dst+1 dec memmove_size+1 bne smd1 - + plp jmp memmap_normal