diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-05-12 14:26:38 +0200 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-05-12 14:26:38 +0200 |
commit | 822fd8616cf3d960cb2df1d2f25452ef57ea854b (patch) | |
tree | a94bc668d1c70d8f6e3079f1abfdcbd46c73bd58 /main.asm | |
parent | 49b39288133272578b8be86e3ced4468927fce5b (diff) |
Zicrs
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"
|