mips system call codes
System Call System Call System Call
Number Operation Description
1 print_int $v0 = 1; $a0 = int to be printed
4 print_string $v0 = 4; $a0 = address of beginning of ASCIIZ string
5 read_int $v0 = 5; user types int at keyboard; value is stored in $v0
8 read_string $v0 = 8; user types string at keybd; addr of beginning of string is stored in $a0; len in $a1
10 exit $v0 = 10; terminates the program
11 print_char $v0 = 11; $a0 = char to be printed
12 read_char $v0 = 12; user types char at keyboard; value is stored in $v0