RISC-V Assembly Language

hello_world.asm

.data hellow: .asciz "Hello World!\n" hellot: .asciz "Hello Tom?\n" .text main: li a7, 4 # syscall code, print string la a0, hellow # load address of string ecall # syscall li a7, 4 # syscall code, print string la a0, hellot # load address of string ecall # syscall li a7, 10 # syscall code, exit ecall # syscall