作者a124136906 (小麦)
看板Grad-ProbAsk
标题[理工] [计组]-MIPS
时间Fri Oct 16 15:18:08 2009
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
1F:推 qazwsxee:用组语写下列的c程式~A跟B的基础位址在$a0与$a1 10/17 02:57
2F:→ qazwsxee:避免使用~不必要的"多元应用指令"(复合指令)~就是叫你用 10/17 02:58
3F:→ qazwsxee:最简易的那些指令去做 10/17 02:58
4F:→ a124136906:恩恩~~谢谢大大帮我解除疑惑><" 10/17 13:56