Update all syscall

And add PutInt() and GetInt()
This commit is contained in:
Yorick Barbanneau 2021-10-15 02:04:09 +02:00
parent 2b7c7ee780
commit 2a3198c949
7 changed files with 95 additions and 31 deletions

View file

@ -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 */