【发布时间】:2020-07-18 19:03:59
【问题描述】:
在跳转指令中,
- 为什么要将 26 位地址转换为 28 位?
- 为什么我们将 PC 中最左边的 4 位添加到 28 位中?
【问题讨论】:
-
1.因为 MIPS 指令必须对齐,所以我们得到更长的跳转位移而不是浪费低 2 位。 In MIPS, why can a jump instruction set the program counter to a 28-bit target address / MIPS jump and branch instructions range 2. 因为他们决定这样设计,而不是作为相对分支。
-
@PeterCordes 你能解释更多关于相关分支的信息
-
How to Calculate Jump Target Address and Branch Target Address? 展示了 MIPS
b指令如beq的工作原理。
标签: assembly mips cpu-architecture machine-code