[問題] 97中正計組第三題

看板Grad-ProbAsk作者時間17年前 (2009/03/19 17:39), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串1/1
題目: In MIPS programs, the current PC is copied to an EPC register once interrupt occurs. It's possible to write the current PC to register $ra just like the jal instruction? Why? 我的想法是中斷是將"發生中斷指令的位址存在EPC",所以存的PC值剛好是PC jal存的位址是存下一個指令的位址(PC+4) 所以答案是不可能 請問這樣是對還是錯 請各位不吝指教 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 125.224.136.75

03/19 20:28, , 1F
應該沒錯
03/19 20:28, 1F
文章代碼(AID): #19mXB91z (Grad-ProbAsk)