Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbierner committed Mar 24, 2012
0 parents commit 6693e68
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions main.s
@@ -0,0 +1,12 @@
#actual start of the main program
.globl main
main:
addu $s7, $0, $ra #save the return address in a global register
.data
.text


#Usual stuff at the end of the main
addu $ra, $0, $s7 #restore the return address
jr $ra #return to the main program
add $0, $0, $0 #nop

0 comments on commit 6693e68

Please sign in to comment.