Implemented parameters

This commit is contained in:
2024-06-27 10:12:41 +02:00
parent 94151773a5
commit 8e64271f74
6 changed files with 76 additions and 27 deletions

View File

@ -3,18 +3,13 @@ main() {
}
hello() {
write := 1
stdout := 1
address := 0
length := 0
address += 4194304
address += 1
length = 0 + 1
length -= length
length += write + stdout
length -= length
length = address - address
length += 50
length -= 20
length *= 10
@ -22,6 +17,14 @@ hello() {
length = (0 + 50 - 20) * 10 / 100
loop {
syscall(write, stdout, address, length)
print(address, length)
}
}
print(address, length) {
write(1, address, length)
}
write(fd, address, length) {
syscall(1, fd, address, length)
}