From 0bdfd6110995fa65661884fb048af9b307fda136 Mon Sep 17 00:00:00 2001 From: Michal Isalski Date: Tue, 1 Sep 2026 13:52:45 +0200 Subject: [PATCH] Fixed swapped pop instructions --- array.asm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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