riscv stuff
This commit is contained in:
parent
c092b3437e
commit
7e8d8fcf4c
|
@ -0,0 +1,4 @@
|
|||
default:
|
||||
rm -rf hello
|
||||
riscv64-linux-gnu-as hello.s -o hello.o
|
||||
riscv64-linux-gnu-gcc -o hello hello.s -nostdlib -static
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,16 @@
|
|||
.global _start
|
||||
|
||||
_start:
|
||||
# STDOUT FD = 1
|
||||
addi a7, zero, 64
|
||||
addi a0, zero, 1
|
||||
la a1, helloworld
|
||||
addi a2, zero, 13
|
||||
ecall
|
||||
|
||||
addi a7, zero, 93
|
||||
addi a0, zero, 13
|
||||
ecall
|
||||
|
||||
helloworld:
|
||||
.ascii "Hello World\n"
|
Loading…
Reference in New Issue