Add octal support

This commit is contained in:
PleegWat
2026-09-10 15:33:46 +02:00
parent 40e4272cdd
commit 431e00ca7e
2 changed files with 59 additions and 10 deletions
+4 -1
View File
@@ -34,6 +34,7 @@ jl next_test
; Done
halt
include ../src/stdlib
@0x20000
@@ -43,7 +44,9 @@ tests:
@0x20000 U32 0b0 U8 2 "0\0"
@0x20040 U32 0xFFFFFFFF U8 2 "11111111111111111111111111111111\0"
@0x20080 U32 0b101010 U8 2 "101010\0"
@0x200c0
@0x200c0 U32 0o640 U8 8 "640\0"
@0x20100 U32 0xFFFFFFFF U8 8 "37777777777\0"
@0x20140
end_of_tests:
scratch: U1024 0