14 lines
224 B
Plaintext
Raw Normal View History

2024-07-20 15:35:26 +00:00
import mem
import sys
main() {
2024-07-22 13:32:16 +00:00
length := 5
2024-07-20 15:35:26 +00:00
address := mem.alloc(length)
2024-07-22 13:32:16 +00:00
address[0] = 'H'
address[1] = 'e'
address[2] = 'l'
address[3] = 'l'
address[4] = 'o'
2024-07-20 15:35:26 +00:00
sys.write(1, address, length)
mem.free(address, length)
}