assembly-playground/risc-v/hello.s

17 lines
208 B
ArmAsm
Raw Normal View History

2024-06-10 11:58:46 +07:00
.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"