关于MIPS跳转的问题

发布于 2024-08-28 05:48:24 字数 204 浏览 4 评论 0原文

PCGPRLEN-1..28 在这里意味着什么?这4位从哪里来?

替代文本 http://img208.imageshack.us/img208/3750/jumpv.jpg< /a>

What does the PCGPRLEN-1..28 means here?? Where does this 4 bit comes from?

alt text http://img208.imageshack.us/img208/3750/jumpv.jpg

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

凉城 2024-09-04 05:48:25

我猜您想知道为什么有 28 位字段,而操作码已经占用了 6 位。

好吧,事实证明 26 位字段左移了两次。因此,目标地址是 4 字节对齐的。

所以,它“就像”一个 28 位字段。有了它,您可以跳转到 256 MB 对齐区域(如您的图片所示),

并直接从 MIPS 32 Arquitecture for Programmers,卷 II(可从 mips.com 下载),第 14 页回答您的问题。

GPRLEN 以位为单位的长度(32 或 64)
CPU通用寄存器的组成

Im guessing that you are wondering why theres a 28 bit field, when the OP-CODE is alredy taking 6 bits.

Well, it turns out that the 26 bit field is shifted left twice. Thus, the destiny address is 4 byte aligned.

So, its "like" a 28 bit field. With it you can jump inside 256 MB aligned regions (as your img states)

And to answer your question, straight from MIPS 32 Arquitecture for programmers, volume II (downloadable from mips.com),page 14.

GPRLEN The length in bits (32 or 64)
of the CPU general-purpose registers

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文