aboutsummaryrefslogtreecommitdiffstats
path: root/asm/fibo.atk16
diff options
context:
space:
mode:
Diffstat (limited to 'asm/fibo.atk16')
-rw-r--r--asm/fibo.atk1614
1 files changed, 4 insertions, 10 deletions
diff --git a/asm/fibo.atk16 b/asm/fibo.atk16
index cae5f5d..fb375b3 100644
--- a/asm/fibo.atk16
+++ b/asm/fibo.atk16
@@ -2,17 +2,11 @@
@opt csr_scratch RH
@use ext_std:*
-; jump over data segment
- jpi program
-
-; data segment
-@include ram_offset
-
-@label program
-; set up stack pointer to point to beginning of RAM
- ldi ram_offset_addr RA
- ldr RA RF
+; bootstrap code (must be called to setup mandatory data)
+; will jump to label main
+@include bootstrap
+@label main
; call fibo subroutine with parameter 10
ldi 10 RA
csi fibo