Fix binary parsing and more tests
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user