看板 Grad-ProbAsk 關於我們 聯絡資訊
For these problems, the table holds various binary values for register $t0, Given the value of $t0, you will be asked to evaluate the outcome of different branches. a. 0x0000 1000 b. 0x2000 1400 2.16.4 Suppose that register $t0 contains a value from above. What is the value of $t2 after the following instructions? slt $t2, $t0, $t0 bne $t2, $zero, ELSE j DONE ELSE: addi $t2, $t2, 2 DONE: 答案是 a. $t2 = 2 b. $t2 = 2 但是為什麼我的認知答案應該都是0呢.... -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 203.70.79.251 ※ 編輯: LUCENE 來自: 203.70.79.251 (06/05 17:56) ※ 編輯: LUCENE 來自: 203.70.79.251 (06/05 17:56)
LUCENE:感覺是bne改成beq一整個就對了 會不會是課本的typo.. 06/05 18:00