Add null-based string to std

This commit is contained in:
bʰedoh₂ swé 2024-06-17 05:30:39 +05:00
parent b2a3e7fd09
commit 5685d0eb4d
2 changed files with 16 additions and 0 deletions

7
std/string/array2null.lb Normal file
View File

@ -0,0 +1,7 @@
@ 0
args 0
size
#exec std/rev.lb
push 0
size
#exec std/rev.lb

9
std/string/null/print.lb Normal file
View File

@ -0,0 +1,9 @@
@ 0
args 1
dup
jz 1
putc
jmp 0
@ 1
quit