diff options
| author | Jan Tuomi <jans.tuomi@gmail.com> | 2023-04-13 14:48:34 +0300 |
|---|---|---|
| committer | Jan Tuomi <jans.tuomi@gmail.com> | 2023-04-13 14:49:59 +0300 |
| commit | 9d4c6fc299294ac36f7082599edce19286fa0f99 (patch) | |
| tree | e7601bb1cd9950482f125377d25b6d5d40b72e62 /asm/fibo.atk16 | |
| parent | afd5f32e56d3d30bfa98fb35deff51febf50e594 (diff) | |
Add @let directive, start pondering interrupt control
Diffstat (limited to 'asm/fibo.atk16')
| -rw-r--r-- | asm/fibo.atk16 | 14 |
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 |
