Refactored code structure

This commit is contained in:
2024-07-03 11:39:24 +02:00
parent ed03f6a802
commit feebfe65bb
54 changed files with 583 additions and 450 deletions

View File

@ -1,8 +1,7 @@
main() {
x := f(2, 3)
syscall(60, x)
syscall(60, f(1) + f(2) + f(3))
}
f(x, y) {
return (x + y) * (x + y)
f(x) {
return x + 1
}

View File

@ -5,7 +5,7 @@ main() {
}
print(address, length) {
write(length-2, address, length)
write(1, address, length)
}
write(fd, address, length) {