Implemented length storage of allocated memory

This commit is contained in:
2025-02-09 14:14:41 +01:00
parent 1ff56e0856
commit 2b2e707520
27 changed files with 134 additions and 49 deletions

View File

@ -1,3 +1,4 @@
import io
import mem
import sys
@ -9,8 +10,8 @@ main() {
info := mem.alloc(24)
loop {
sys.write(1, "$ ", 2)
n := sys.read(0, command, length)
io.out("$ ")
n := io.in(command)
if n <= 0 {
return