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
+19
View File
@@ -47,6 +47,20 @@ mov r13, test7_pass
jmp atoi_test
test7_pass:
mov r1, 8
mov r2, test8
mov r3, test8_end
mov r13, test8_pass
jmp atoi_test
test8_pass:
mov r1, 9
mov r2, test9
mov r3, test9_end
mov r13, test9_pass
jmp atoi_test
test9_pass:
success:
jmp success
@@ -103,5 +117,10 @@ test6_end: "\0"
test7: U32 19 "023"
test7_end: "9\0"
test8: U32 11 "0b1011"
test8_end: "\0"
test9: U32 17 "0b10001"
test9_end: "2\0"
include stdlib