Skip to content

Creating Hello World.

Yaye edited this page Nov 3, 2025 · 3 revisions

.data str: .asciiz "Hello, World!\n"

.text main: la a0, str # Load address of string into a0 li a7, 4 # Syscall code for print_string ecall # Make the system call

li a7, 10           # Syscall code for exit
ecall

Clone this wiki locally