Implemented parameters

This commit is contained in:
Eduard Urbach 2024-06-27 10:12:41 +02:00
parent 51a2308179
commit 0d8891d8a7
Signed by: eduard
GPG key ID: 49226B848C78F6C8
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)
}