Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 6693e68
Showing
1 changed file
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |