summaryrefslogtreecommitdiff
path: root/main.asm
diff options
context:
space:
mode:
Diffstat (limited to 'main.asm')
-rw-r--r--main.asm5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.asm b/main.asm
index 2d41e48..3ae0850 100644
--- a/main.asm
+++ b/main.asm
@@ -13,10 +13,13 @@ l1:
ret
_main:
+ csrr a0, mhartid
+
la a0, my_str
call print
-halt: j halt
+ li a0, 0
+ ecall
.section .rodata
my_str: .string "Hello, world!\n"