Added call registers
This commit is contained in:
parent
8867845310
commit
9e3112ad52
8 changed files with 53 additions and 44 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue