我们什么时候需要$ V1的MIPS? [英] When do we need $v1 in MIPS?

查看:467
本文介绍了我们什么时候需要$ V1的MIPS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们都知道,通常是一个程序将返回一个值,但我已经注意到,我们有两个值返回寄存器$ V0和V1 $以MIPS。在code我都看见只有$ V0但是$ V1,我还没有发现使用$ V1任何汇编语言例如code。谁能告诉我,为什么我们有两个$ V寄存器MIPS和告诉我的时候,可以用它的一个例子吗?

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. The code I have seen all only have $v0 but $v1, and I haven't found any assembly language example code that uses $v1. Could anyone tell me why we have two $v registers in MIPS and show me a example of when it could be used?

非常感谢!

推荐答案

另一个用例是返回(64位MIPS或128位数字)32位MIPS 64位数字。

Another use case is returning 64-bit numbers on 32-bit MIPS (or 128-bit numbers in 64-bit MIPS).

这篇关于我们什么时候需要$ V1的MIPS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆