Fix strings search looping

This commit is contained in:
2025-05-04 23:49:39 +02:00
parent 0a0bc4e1f2
commit df1c0486c5
4 changed files with 243 additions and 350 deletions

View File

@@ -425,6 +425,9 @@ _memcpy:
addi a0, a0, 1
addi a1, a1, 1
addi a2, a2, -1
j .Lmemcpy_loop
.Lmemcpy_end:
mv a0, t0
@@ -473,6 +476,8 @@ _strings_index:
beqz a0, .Lstrings_index_end
.Lstrings_index_next:
# Advance the pointer, reduce the length.
lw a2, (s2)
addi s2, s2, 4
add s2, s2, a2
addi s1, s1, -1