aboutsummaryrefslogtreecommitdiffstats
path: root/asm/fibo.atk16
diff options
context:
space:
mode:
authorJan Tuomi <jans.tuomi@gmail.com>2023-04-11 17:30:08 +0300
committerJan Tuomi <jans.tuomi@gmail.com>2023-04-11 18:41:56 +0300
commita38b64e1a1bf14dd9c42629f219b0e422aebe52a (patch)
tree8cc08f712ddd3f8573d2b7c8aa243fcd1b6e52df /asm/fibo.atk16
parente240ef3e9a2854cfe390b47fb0b3d519c095193b (diff)
Add hover and go to definition to extension
Diffstat (limited to 'asm/fibo.atk16')
-rw-r--r--asm/fibo.atk1613
1 files changed, 5 insertions, 8 deletions
diff --git a/asm/fibo.atk16 b/asm/fibo.atk16
index 8bb7a6e..198ae8b 100644
--- a/asm/fibo.atk16
+++ b/asm/fibo.atk16
@@ -6,12 +6,11 @@
jpi program
; data segment
-@label ram_offset
- 0x8000
+@include ram_offset
@label program
; set up stack pointer to point to beginning of RAM
- ldi ram_offset RA
+ ldi ram_offset_addr RA
ldr RA RF
; call fibo subroutine with parameter 10
@@ -20,11 +19,9 @@
hlt
@label fibo
-; function fibo
-; parameters:
-; RA n : u16
-; return value:
-; RA fibo(n) : u16
+;? subroutine fibo
+;? param RA N
+;? return RA Nth fibonacci number
; store RB, RC on stack
spu RB