Implemented parameters
This commit is contained in:
parent
51a2308179
commit
0d8891d8a7
6 changed files with 76 additions and 27 deletions
|
@ -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)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue