Implemented data labels

This commit is contained in:
2024-07-13 00:13:13 +02:00
parent 7b18056006
commit 9df899cb52
18 changed files with 428 additions and 327 deletions

View File

@ -1,17 +1,11 @@
main() {
x := f(1) + f(2) + f(3)
if x != 9 {
exit(1)
}
exit(0)
print("Hello", 5)
}
exit(code) {
syscall(60, code)
print(address, length) {
write(1, address, length)
}
f(x) {
return x + 1
write(fd, address, length) {
syscall(1, fd, address, length)
}