diff options
author | Braxton Hall | 2022-10-23 23:21:27 +0000 |
---|---|---|
committer | GitHub | 2022-10-23 23:21:27 +0000 |
commit | d85784ebff633fed6389b86078795ca36a6f61b6 (patch) | |
tree | 9b8fb80f48ad02b2e5a39c52e54327d17dc15647 | |
parent | a7d8da6952af7f5f5e33fb8c54e9a0ffb15de47b (diff) | |
parent | 0625380029d8eaf6a3aca4b01ac1a4bffe79c1d0 (diff) |
Merge pull request #6 from adirar111/main
edits to `fib.s`
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | entries/adirar111/y86/fib.s (renamed from entries/adirar111/y86/fib.ys) | 11 |
2 files changed, 9 insertions, 4 deletions
@@ -5,7 +5,7 @@ Can you please give me a Fibonacci function? Ideally (but not necessarily) one t For a submission to the upcoming "Reclaim your space" exhibition at [Hatch Art Gallery](https://www.instagram.com/hatch_artgallery). ### [`adirar111`](https://github.com/adirar111) -- [`y86`](./entries/adirar111/y86/fib.ys) +- [`y86`](./entries/adirar111/y86/fib.s) ### [`braxtonhall`](https://github.com/braxtonhall) - [`adam`](./entries/braxtonhall/adam/main.py) (WIP) 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: |