【发布时间】:2014-09-17 16:04:33
【问题描述】:
我是 Mips 的新手,需要您的帮助。我遇到了一个练习:
Assuming that the program counter has the 2000 0000hex value in it, is it possible that the program counter will get the 00001000hex or the 20001400hex value using the beq or the jump instruction
首先,我无法真正理解 beq 指令的 16 位值和跳转指令的 26 位值代表什么。它是偏移量还是地址?老实说,我认为这是一个地址,但我无法真正理解它是如何工作的。
练习的答案是,对于 00001000hex 值,两条指令都可以将您带到那里,但对于第二条指令,只有跳转指令可以工作。这是为什么?任何帮助将不胜感激。
【问题讨论】: