summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2021-07-10 15:15:37 +0200
committerAki <please@ignore.pl>2021-07-10 15:15:37 +0200
commited67e761704a61417287268e88b8ce5c2a39df6c (patch)
treecf846a22c3c9c2834867cfe92fcf45acde12f3f9
parent583b4154ca6783ba03ddaace51f698a14efc3733 (diff)
downloadlc3-ed67e761704a61417287268e88b8ce5c2a39df6c.zip
lc3-ed67e761704a61417287268e88b8ce5c2a39df6c.tar.gz
lc3-ed67e761704a61417287268e88b8ce5c2a39df6c.tar.bz2
Added initialization assembly
-rw-r--r--init.asm28
1 files changed, 28 insertions, 0 deletions
diff --git a/init.asm b/init.asm
new file mode 100644
index 0000000..489722c
--- /dev/null
+++ b/init.asm
@@ -0,0 +1,28 @@
+ .ORIG x0000
+; traps
+ .BLKW #31
+ .FILL t_getc
+ .FILL t_out
+ .FILL t_puts
+ .FILL t_in
+ .FILL t_putsp
+ .FILL t_halt
+ .BLKW #219
+; interrupts
+ .FILL thalt
+ .FILL thalt
+ .BLKW #254
+; supervisor code ; TODO: implement traps and find working assembler
+t_getc
+ .BLKW #1
+t_out
+ .BLKW #1
+t_puts
+ .BLKW #1
+t_in
+ .BLKW #1
+t_putsp
+ .BLKW #1
+t_halt
+ .BLKW #1
+ .END