Added call registers

This commit is contained in:
2024-06-27 14:25:53 +02:00
parent 735057ac74
commit dc497ba4fb
8 changed files with 53 additions and 44 deletions

View File

@ -1,8 +1,4 @@
main() {
hello()
}
hello() {
address := 0
length := 0
@ -15,6 +11,7 @@ hello() {
length *= 10
length /= 100
length = (0 + 50 - 20) * 10 / 100
length = 1
loop {
print(address, length)
@ -22,7 +19,7 @@ hello() {
}
print(address, length) {
write(1, address, length)
write(length, address, length+1)
}
write(fd, address, length) {