# shell for a SPIM program including required documentation # # Name: SHUB # Semester: Spring 2004 # Class: CS 216 # Assignment: class demo # Problem: print hello, world # Filename: hello.s # # # # hello world # the directives used below (.asciz .data .text) # are described on pages a-51 to a-52 of the text # # the system calls for input and output are # described on pages a-48 and a-49 of the text # .data # variable declarations go here str: .asciiz "Hello, World!\n" .text main: # your code starts here # print hello string addi $v0,$zero, 4 la $a0, str syscall # exit program addi $v0,$zero, 10 syscall # end of program