aboutsummaryrefslogtreecommitdiff
path: root/entries
diff options
context:
space:
mode:
authorBraxton Hall2022-10-23 23:21:27 +0000
committerGitHub2022-10-23 23:21:27 +0000
commitd85784ebff633fed6389b86078795ca36a6f61b6 (patch)
tree9b8fb80f48ad02b2e5a39c52e54327d17dc15647 /entries
parenta7d8da6952af7f5f5e33fb8c54e9a0ffb15de47b (diff)
parent0625380029d8eaf6a3aca4b01ac1a4bffe79c1d0 (diff)
Merge pull request #6 from adirar111/main
edits to `fib.s`
Diffstat (limited to 'entries')
-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: