diff --git a/array.asm b/array.asm index 582ca7b..c90ba38 100644 --- a/array.asm +++ b/array.asm @@ -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