Skip to content

Commit 4831f5a

Browse files
committed
add chapter 03 - 14 answer
1 parent 24fc039 commit 4831f5a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

chapters/chapter.03.ans.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ set,理解为比较后将结果设到寄存器中
6868
13) 记忆指令有没有什么技巧?
6969

7070
14) 是否可以用无条件跳转指令来获取到PC的值?
71+
jal a0, FLAG
72+
FLAG:
73+
经过这样的运算后,a0 的值便成了 jal 指令所在地址 +4
7174

7275
15) 为什么RV64I只支持小于比较指令?
7376
在 MIPS 中,只需要用 slt slti beq bne 以及固定值 0 就可以创建所有的比较条件

0 commit comments

Comments
 (0)