Minimal assembly example

This commit is contained in:
Toby Jaffey 2025-12-07 10:45:11 +00:00
parent 95333e06d8
commit d8a2faf732
4 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,9 @@
.section .initial_jump , "ax", %progbits
.global _start
_start:
la a5, str
csrrw zero,0x13b,a5 # println
csrwi 0x138,0 # halt
str:
.ascii "Hi"