Add null-based string to std
This commit is contained in:
parent
b2a3e7fd09
commit
5685d0eb4d
7
std/string/array2null.lb
Normal file
7
std/string/array2null.lb
Normal 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
9
std/string/null/print.lb
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
@ 0
|
||||||
|
args 1
|
||||||
|
dup
|
||||||
|
jz 1
|
||||||
|
putc
|
||||||
|
jmp 0
|
||||||
|
|
||||||
|
@ 1
|
||||||
|
quit
|
Loading…
Reference in New Issue
Block a user