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