diff --git a/agb/src/agbabi/memcpy.s b/agb/src/agbabi/memcpy.s index 0c7412b5..8f6b6018 100644 --- a/agb/src/agbabi/memcpy.s +++ b/agb/src/agbabi/memcpy.s @@ -29,6 +29,10 @@ __aeabi_memcpy: bmi .Lcopy1 bcs .Lcopy2 + // If the number of bytes to copy is less than 4, we should just copy one byte at a time + cmp r2, #4 + bmi .Lcopy1 + .Lcopy4: // Copy half and byte head rsb r3, r0, #4