Refactored code structure
This commit is contained in:
parent
9e52e2dd1c
commit
fd6e874b44
54 changed files with 583 additions and 450 deletions
|
@ -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
|
||||
}
|
|
@ -5,7 +5,7 @@ main() {
|
|||
}
|
||||
|
||||
print(address, length) {
|
||||
write(length-2, address, length)
|
||||
write(1, address, length)
|
||||
}
|
||||
|
||||
write(fd, address, length) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue