diff options
Diffstat (limited to 'main.asm')
-rw-r--r-- | main.asm | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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"
|