[作業] 03/30 交計算機結構 Homework 1
03/30 (二) 交 計算機結構 Homework 1
講義內的:
C code fragment:
register int g,h,i,k;
int A[5],B[5];
B[k]=h+A[i+1];
1.Translate the C code fragment into MIPS
2.Execute the C code fragment using:
A=address 1000,B=address 5000, i=3, h=10, k=2,
int A[5]={24,33,76,2,19};
/*i.e. A[0]=24;A[1]=33;...*/.
多加一題:
將C語言的泡泡排序法用MIPS版本表現出來
以上全部用A4紙 手寫
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 118.160.104.4
※ 編輯: yihchii 來自: 118.160.104.4 (03/23 23:06)