Implemented length storage of allocated memory
This commit is contained in:
parent
1ff56e0856
commit
2b2e707520
27 changed files with 134 additions and 49 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue