Implemented data labels
This commit is contained in:
@ -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)
|
||||
}
|
Reference in New Issue
Block a user