How are the arguments passed to a MIPS function?

MIPS uses the following conventions for function arguments and results. — Up to four function arguments can be “passed” by placing them in argument registers $a0-$a3 before calling the function with jal. — A function can “return” up to two values by placing them in registers $v0-$v1 , before returning via jr.
For More Information Please Refer:

You May Also Like to Read: