Fix binary parsing and more tests

This commit is contained in:
PleegWat
2026-09-02 21:33:58 +02:00
parent fd5469aafc
commit 9ff0a3192c
2 changed files with 21 additions and 2 deletions
+2 -2
View File
@@ -77,7 +77,7 @@ atoi_bin_loop:
load_8 r3, [r2]
cmp r3, 0x30 ; '0'
jl atoi_done
cmp r3, 0x39 ; '1'
cmp r3, 0x31 ; '1'
jg atoi_done
add r2, r2, 1
sub r3, r3, 0x30 ; '0'
@@ -143,4 +143,4 @@ add r2, r2, 1
sub r3, r3, 0x37 ; 'A' - 10
lsl r1, r1, 4
add r1, r1, r3
jmp atoi_hex_loop
jmp atoi_hex_loop