is now a fragment

This commit is contained in:
Torsten Ruger 2014-05-22 19:32:59 +03:00
parent 7c2d149106
commit dcbbff5527

View File

@ -1,13 +0,0 @@
def fibonaccit(n) # n == r0
a = 0 # a == r1
b = 1 # b = r2
while( n > 1 ) do #BUG comment lines + comments behind function calls
tmp = a # r3 <- r1
a = b # r1 <- r2
b = tmp + b # r4 = r2 + r3 (r4 transient) r2 <- r4
n = n - 1 # r0 <- r2 for call, #call ok
end #r5 <- r0 - 1 n=n-1 through r5 tmp
putint(b)
end # r0 <- r5
fibonaccit( 10 )