... | ... |
@@ -2,7 +2,7 @@ |
2 | 2 |
A series of numbers where the next number |
3 | 3 |
is made of the two numbers before it ) |
4 | 4 |
|
5 |
-|100 |
|
5 |
+|0100 @on-reset |
|
6 | 6 |
|
7 | 7 |
#0019 #0000 |
8 | 8 |
&l |
... | ... |
@@ -11,13 +11,13 @@ |
11 | 11 |
DUP2 #0000 #0001 ROT2 fibr pdec #0a18 DEO POP2 POP2 |
12 | 12 |
INC2 GTH2k ?&l |
13 | 13 |
POP2 POP2 |
14 |
- #010f DEO |
|
14 |
+ #800f DEO |
|
15 | 15 |
|
16 | 16 |
BRK |
17 | 17 |
|
18 | 18 |
( recursive ) |
19 | 19 |
|
20 |
-@fib ( num -- numfib* ) |
|
20 |
+@fib ( num* -- numfib* ) |
|
21 | 21 |
#0001 GTH2k ?&ok |
22 | 22 |
POP2 JMP2r &ok |
23 | 23 |
SUB2k fib STH2 INC2 |
... | ... |
@@ -27,7 +27,7 @@ JMP2r |
27 | 27 |
|
28 | 28 |
( tail-recursive ) |
29 | 29 |
|
30 |
-@fibr ( a* b* num* -- a* b* num* ) |
|
30 |
+@fibr ( a* b* num* -- a* b* numfib* ) |
|
31 | 31 |
ORAk ?&no-0 |
32 | 32 |
POP2 OVR2 JMP2r &no-0 |
33 | 33 |
DUP2 #0001 NEQ2 ?&no-1 |