From 1749a11283114997eb60267f381bc980defe4472 Mon Sep 17 00:00:00 2001 From: pjht Date: Tue, 19 Mar 2024 13:38:41 -0500 Subject: [PATCH] Fix copy_to_secondary --- vmem.68k | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vmem.68k b/vmem.68k index 056f2e3..a4c541e 100644 --- a/vmem.68k +++ b/vmem.68k @@ -387,11 +387,11 @@ vmem_map_free_to: ; Copies the range of page mappings at address a0 in the primary space with length d0 to the secondary space starting at address a1 public vmem_copy_to_secondary vmem_copy_to_secondary: - move.l d0, -(a7) + movem.l d0/a1, -(a7) ; Get the mapping pointer for the start page in the primary address space move.l #0, d0 bsr.w vmem_get_map_ptr - move.l (a7)+, d0 + movem.l (a7)+, d0/a1 subi.l #1, d0 ; Subtract 1 to account for the extra loop done by dbra vmem_cts_loop: ; Read the next page mapping and increment the pointer