From 9d4c6fc299294ac36f7082599edce19286fa0f99 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Thu, 13 Apr 2023 14:48:34 +0300 Subject: Add @let directive, start pondering interrupt control --- asm/fibo.atk16 | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'asm/fibo.atk16') 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 -- cgit v1.3