When do we need $v1 in MIPS?

后端 未结 3 503
不知归路
不知归路 2021-01-15 16:41

We all know that usually a program will just return one value, but I have noticed that we have two value returning registers $v0 and $v1 in MIPS. T

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-15 17:12

    I can think of plenty of examples, but it's probably just up to your discretion. The best example is probably a function that returns a value in $v0 and may set an error code in $v1.

提交回复
热议问题