mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-06 06:53:39 +00:00
Minimal assembly example
This commit is contained in:
parent
95333e06d8
commit
d8a2faf732
4 changed files with 39 additions and 0 deletions
9
apps/hello-asm/hello-asm.s
Normal file
9
apps/hello-asm/hello-asm.s
Normal 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"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue