Section A.2 OS Calls
Calling the operating system is done by the
syscall instruction. The operation to be carried out is specified by the
$v0 register. Potential arguments to the system call are passed in the argument registers.
|read integer||5||Read number stored in
|exit||10||End program execution.|
|read character||12||ASCII code of read character stored in