-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
10 changed files
with
189 additions
and
51 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
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
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
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
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
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
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 |
---|---|---|
@@ -1,5 +1,14 @@ | ||
ADDI $t2, $sp, 4 | ||
MOVE $t3, $t2 | ||
ADDI $t2, $sp, 0 | ||
LW $t0, ($t2) | ||
SW $t0, ($t3) | ||
main: | ||
addiu $sp, $sp, -12 | ||
sw $ra, 8($sp) | ||
sw $s0, 4($sp) | ||
lw $s0, $sp | ||
addiu $sp, $sp, -4 | ||
li $t0, 0 | ||
sw $t0, $sp | ||
lw $v0, $sp | ||
lw $s0, $4($s0) | ||
lw $ra, $8($s0) | ||
lw $sp, $s0 | ||
addiu $sp, $sp, 8 | ||
JR $ra |
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
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
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,21 @@ | ||
# ifndef Function_HH | ||
# define Function_HH | ||
|
||
#include <string> | ||
|
||
struct Function | ||
{ | ||
std::string id; | ||
|
||
int space_needed; | ||
int number_of_arguments; | ||
|
||
enum Type | ||
{ | ||
INT, | ||
CHAR, | ||
VOID | ||
} type; | ||
}; | ||
|
||
#endif |