MIPS如何分支到32位地址? [英] MIPS How to branch to a 32-bit address?
本文介绍了MIPS如何分支到32位地址?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试转到一个地址:
I am trying to branch to an address:
bne $t0, $0, 0x7813a21c
但是,这是不正确的,因为bne仅向立即数分配16位
However, this is incorrect because bne only allocates 16-bits to the immediate
如何分支到直接的32位地址?有没有一种方法可以从寄存器中的值分支出来?
How can I branch to a direct 32-bit address? Is there a way to branch from a value in a register?
推荐答案
您必须使用JR
跳转到存储在寄存器中的地址.
You have to use JR
to jump to an address stored in a register.
这篇关于MIPS如何分支到32位地址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文