mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-06 06:53:39 +00:00
Rename .s to .S so preprocessor runs (https://stackoverflow.com/questions/33358825/gnu-assembler-preprocessor-define)
This commit is contained in:
parent
751f068486
commit
7bf906f369
2 changed files with 25 additions and 0 deletions
12
apps/hello-asm/hello-asm.S
Normal file
12
apps/hello-asm/hello-asm.S
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#include "uvm32_sys.h"
|
||||
#include "uvm32_common_custom.h"
|
||||
.section .initial_jump , "ax", %progbits
|
||||
.global _start
|
||||
_start:
|
||||
la a0, str
|
||||
li a7, IOREQ_PRINTLN
|
||||
ecall
|
||||
li a7, IOREQ_HALT
|
||||
ecall
|
||||
str:
|
||||
.ascii "Hi\0"
|
||||
Loading…
Add table
Add a link
Reference in a new issue