aboutsummaryrefslogtreecommitdiffstats
path: root/asm/bootstrap.atk16
diff options
context:
space:
mode:
authorJan Tuomi <jans.tuomi@gmail.com>2023-11-04 20:56:54 +0200
committerJan Tuomi <jans.tuomi@gmail.com>2023-11-06 14:01:09 +0200
commit7309d563c6661f6e17c1ed3577b40b9646a85bb4 (patch)
treea1c483744fe3592c7f6ab20e618ee8a52f0bebdb /asm/bootstrap.atk16
parentc28c5320a4084c1c728c10ec35196630e35d94db (diff)
wip compiler
Diffstat (limited to 'asm/bootstrap.atk16')
-rw-r--r--asm/bootstrap.atk1624
1 files changed, 12 insertions, 12 deletions
diff --git a/asm/bootstrap.atk16 b/asm/bootstrap.atk16
index a65fc99..6363d71 100644
--- a/asm/bootstrap.atk16
+++ b/asm/bootstrap.atk16
@@ -43,17 +43,17 @@
ldi 0x55 RE
hlt
-; @label keyboard_isr
-; stack_stash RA RB
-; ldi vt_kb_pp_addr RA ; RA := Keyboard peripheral address pointer
-; ldr RA RA ; RA := Keyboard peripheral address deref
-; ldr RA RA ; RA := <16-bit keyboard character code> from MMIO register
-; ldi vt_term_pp_addr RB ; RB := Terminal peripheral address pointer
-; ldr RB RB ; RB := Terminal peripheral address deref
-; str RA RB ; terminal <- character code (ASCII?)
-; mov RA RE ; RE := character code (for debugging)
-; stack_restore RA RB
-; rti
+@label keyboard_isr
+ stack_stash RA RB
+ ldi vt_kb_pp_addr RA ; RA := Keyboard peripheral address pointer
+ ldr RA RA ; RA := Keyboard peripheral address deref
+ ldr RA RA ; RA := <16-bit keyboard character code> from MMIO register
+ ldi vt_term_pp_addr RB ; RB := Terminal peripheral address pointer
+ ldr RB RB ; RB := Terminal peripheral address deref
+ str RA RB ; terminal <- character code (ASCII?)
+ mov RA RE ; RE := character code (for debugging)
+ stack_restore RA RB
+ rti
@label program_segment
; define short prelude that sets up vital instructions
@@ -61,7 +61,7 @@
@address 0x0
; set up stack pointer to point to beginning of stack segment
ldi vt_stack_addr RA
- ldr RA RF
+ ldr RA __STACK_POINTER
jpi program_segment
@address program_segment