work on Integer.to_s , not a simple task as it turns out

This commit is contained in:
Torsten Ruger
2014-05-15 16:54:23 +03:00
parent 918ede1c02
commit b4c79d218f
12 changed files with 80 additions and 11 deletions

View File

@ -5,7 +5,8 @@ def fibonaccit(n) # n == r0
tmp = a # r3 <- r1
a = b # r1 <- r2
b = tmp + b # r4 = r2 + r3 (r4 transient) r2 <- r4
putstring(b)
tmp = inttos(b)
putstring(tmp)
n = n - 1 # r2 <- 0 ???? #call ok
end #r5 <- r0 - 1 # r0 <- r5
end

1
test/runners/putint.rb Normal file
View File

@ -0,0 +1 @@
putint( 42 )