Fix out by 1 while calcuating leading zeros

This commit is contained in:
Gwilym Kuiper 2023-01-12 21:53:54 +00:00
parent 832ad13e12
commit 6ebe08e528

View file

@ -64,6 +64,8 @@ same_modification:
lsrs r7, r7, #1 lsrs r7, r7, #1
bne 1b bne 1b
sub r3, r3, #1
mov r5, #0 @ current index we're reading from mov r5, #0 @ current index we're reading from
ldr r8, =agb_rs__buffer_size @ the number of steps left ldr r8, =agb_rs__buffer_size @ the number of steps left
ldr r8, [r8] ldr r8, [r8]