From ed67e761704a61417287268e88b8ce5c2a39df6c Mon Sep 17 00:00:00 2001 From: Aki Date: Sat, 10 Jul 2021 15:15:37 +0200 Subject: Added initialization assembly --- init.asm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 init.asm 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 -- cgit v1.1