Website Summary Files Commits Branches @commit @diff @stats
path: root / example.s
diff options
context:
space:
mode:
Commitce0636266d416103c8827bd6cfa570ae89e19bfc (patch)
Author
 Syndamia <kamen@syndamia.com>
2025-02-14 18:29:08 +0200
Committer
 Syndamia <kamen@syndamia.com>
2025-02-14 18:29:08 +0200
Files7de2bcb13dbfe7d34295786ca971c9ed4684d849 /example.s
tonkobali-ce0636266d416103c8827bd6cfa570ae89e19bfc.tar
tonkobali-ce0636266d416103c8827bd6cfa570ae89e19bfc.tar.gz
tonkobali-ce0636266d416103c8827bd6cfa570ae89e19bfc.zip
Parentacbd7c4b6cb7917ab0033d2cb18df182d614a85a (diff)
chore: Move example to a directory
1 files changed, 0 insertions, 21 deletions
-rw-r--r--example.s21
diff --git a/example.s b/example.s
deleted file mode 100644
index afc4b25..0000000
--- a/example.s
+++ /dev/null
@@ -1,21 +0,0 @@
-f0 = 0
-f1 = 1
-fN = 0
-n = 5
-
-fib:
- beq n, fib_result ; while n > 0
-
- mov f0, fN ; fN = f0 + f1
- add f1, fN
- mov f1, f0 ; f0 = f1
- mov fN, f1 ; f1 = fN
-
- dec n ; n--
-
- jmp fib
-
-fib_result:
- mov f0, %1000 ; return f0
- mov %0, f0 ; Reset f0
- mov %1, f1 ; Reset f1