$v0 is where you store the code of the syscall you want.
Print a number
Integer:
li $v0, 1
li $a0, 151 # number to print
syscallSingle floating point:
li $v0, 1
l.s $f12, floatTwo # number to print
syscallDouble floating point:
li $v0, 1
l.d $f12, doubleTwo # number to print
syscallPrint a string
Prints a null-termianted string
li $v0, 4
la $a0, stringToPrint # string to print
syscallPrint a character
li $v0, 11
li $a0, 48 # ascii charto print
syscallPrint a character
la $s0, charToPrint
li $v0, 11
lb $a0, ($s0) # char to print
syscallRead a number
Returns the number typed in terminal
Limit to 32-bits
Cannot read 64-bit integers
li $v0, 5
syscallRead a float
li $v0, 6
syscallRead a double
li $v0, 7
syscallRead a string
li $v0, 8
la $a0, bufferToSaveInto
li $a1, 10 # length of buffer
syscallTerminate the program
li $v0, 10
syscall