Update all syscall
And add PutInt() and GetInt()
This commit is contained in:
parent
2b7c7ee780
commit
2a3198c949
7 changed files with 95 additions and 31 deletions
|
@ -181,6 +181,24 @@ GetString:
|
|||
syscall
|
||||
j $31
|
||||
.end GetString
|
||||
|
||||
.globl PutInt
|
||||
.ent PutInt
|
||||
PutInt:
|
||||
addiu $2,$0,SC_PutInt
|
||||
syscall
|
||||
j $31
|
||||
.end PutInt
|
||||
|
||||
.globl GetInt
|
||||
.ent GetInt
|
||||
GetInt:
|
||||
addiu $2,$0,SC_GetInt
|
||||
syscall
|
||||
j $31
|
||||
.end GetInt
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
/* dummy function to keep gcc happy */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue