[理工] [計組]-MIPS

看板Grad-ProbAsk作者 (小麥)時間16年前 (2009/10/16 15:18), 編輯推噓1(103)
留言4則, 2人參與, 最新討論串1/7 (看更多)
In MIPS assembly,write an assembly language version of the following C code segment: intA[100],B[100]; for(i=1;i<100;i++) { A[i]= A[i-1]+B[i]; } At the beginning of this code segment,the only values in registers are the base address of arrays A and B in registers $a0 and $a1. Avoid the use of multiplication instructions-they are unnecessary. 小弟有點不知道這題要怎麼寫 希望有高手可以幫我解!!! 自己MIPS程度很低 希望幫解><" -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.136.149.162

10/17 02:57, , 1F
用組語寫下列的c程式~A跟B的基礎位址在$a0與$a1
10/17 02:57, 1F

10/17 02:58, , 2F
避免使用~不必要的"多元應用指令"(複合指令)~就是叫你用
10/17 02:58, 2F

10/17 02:58, , 3F
最簡易的那些指令去做
10/17 02:58, 3F

10/17 13:56, , 4F
恩恩~~謝謝大大幫我解除疑惑><"
10/17 13:56, 4F
文章代碼(AID): #1As1unl6 (Grad-ProbAsk)
討論串 (同標題文章)
文章代碼(AID): #1As1unl6 (Grad-ProbAsk)