aboutsummaryrefslogtreecommitdiff
path: root/entries/adirar111
diff options
context:
space:
mode:
authorfunemy2022-10-24 02:21:57 +0000
committerfunemy2022-10-24 02:21:57 +0000
commit95f14a976eda122d8f58ed1ff6ee4f16f1f81b77 (patch)
tree35650c8d04f2745d9ea233948cf6c81ba9b4cda6 /entries/adirar111
parent201f9e290b59838ed249b7d1be03e5b8230bef3e (diff)
parent46a659c983911b87b38b20cd4b28ab9176e4fdb3 (diff)
Merge branch 'main' of github.com:braxtonhall/fib
Diffstat (limited to 'entries/adirar111')
-rw-r--r--entries/adirar111/y86/fib.s (renamed from entries/adirar111/y86/fib.ys)11
1 files changed, 8 insertions, 3 deletions
diff --git a/entries/adirar111/y86/fib.ys b/entries/adirar111/y86/fib.s
index 156c1ae..8aa62d2 100644
--- a/entries/adirar111/y86/fib.ys
+++ b/entries/adirar111/y86/fib.s
@@ -1,8 +1,13 @@
# y86 implementation of
+#
# def fibonacci(n):
-# if n <= 1:
-# return n
-# return fibonacci(n-1) + fibonacci(n-2)
+# if n <= 1:
+# return n
+# return fibonacci(n-1) + fibonacci(n-2)
+#
+# run it:
+# * https://www.students.cs.ubc.ca/~cs-313/simulator/?arch=y86&impl=seq
+# * https://www.eecs.yorku.ca/~jonatan/simulator/?arch=y86&impl=seq
.pos 0
main: