Implemented array storage

This commit is contained in:
2024-07-20 17:35:26 +02:00
parent d35c07ed1c
commit 155df7c44c
17 changed files with 150 additions and 45 deletions

13
examples/array/array.q Normal file
View File

@ -0,0 +1,13 @@
import mem
import sys
main() {
length := 4
address := mem.alloc(length)
address[0] = 65
address[1] = 66
address[2] = 67
address[3] = 68
sys.write(1, address, length)
mem.free(address, length)
}