Simple Startup

This commit is contained in:
2026-04-07 15:12:48 +02:00
commit 86cfe54faa
7 changed files with 75 additions and 0 deletions

17
hello.s Normal file
View File

@@ -0,0 +1,17 @@
.section .text
.globl _start
_start:
li a0, 1 # file descriptor (stdout)
la a1, msg # buffer address
li a2, 14 # message length
li a7, 64 # syscall: write
ecall
li a0, 0 # exit code
li a7, 93 # syscall: exit
ecall
.section .rodata
msg:
.ascii "Hello, RISC-V\n"