From dd07c57d7aaa637165d2234807f8d3ffc87b0c22 Mon Sep 17 00:00:00 2001 From: Madeline Busig Date: Wed, 6 Mar 2024 23:00:38 -0700 Subject: [PATCH] Fix rmemcpy32 not copying chunks correctly --- src/memcpy.s | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/memcpy.s b/src/memcpy.s index 5124d03..0b4fccb 100644 --- a/src/memcpy.s +++ b/src/memcpy.s @@ -135,6 +135,9 @@ sub r1, #3 bhi .Lrword_copy // r2 = num chunks lsr r2, #5 +// Move to the beginning of the current chunk +sub r0, #28 +sub r1, #28 // Preserve local variables push {r4-r10} .Lrchunk_copy: