# Hello World in MIPS assembly for SPIM

  .data
hellostr:
  .asciiz "Hello World!\n"

  .text
  .globl main
main:
  la $a0, hellostr # $a0: Address of first character of string.
  li $v0, 4        # 4 is printf("%s") syscall number
  syscall		       # print_string

  li $v0, 10		   # 10 is exit syscall number
  syscall
