assembly-playground/risc-v/hello.s

17 lines
208 B
ArmAsm

.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"