Fixed swapped pop instructions

This commit is contained in:
Michal Isalski
2026-09-01 13:52:45 +02:00
parent 625f01166a
commit 20e1f17181
+1 -1
View File
@@ -62,8 +62,8 @@ pub find_index:
find_index_found_item:
add sp, sp, 4 ; The predicate context is not useful
pop r13 ; We get our return address
pop r1 ; We get the array pointer
pop r13 ; We get our return address
sub r1, r11, r1 ; We calculate the bytes from the start
lsr r10, r10, 1 ; We shift the stride to get the amount to shift the bytes for
lsr r1, r1, r10 ; We shift to get the index of the item