0
我必須寫使用IAS指令集的節目有兩個2×2矩陣相乘,結果存儲在另一個矩陣C.我看到他人發佈傢伙矩陣另外一個程序:矩陣乘法採用IAS指令集
**********************
* Initialize a variable 'count' to 999
Label: TOP
00000001 LOAD M(A[count]) Transfer M(A[count]) to the accumulator
00000101 ADD M(B[count]) Add M(B[count]) to AC and store result in AC
00100001 STOR M(C[count]) Transfer contents of accumulator to memory location C[count]
00001010 LOAD M(address of count) Transfer the contents of M(address of count) to the AC
00000110 SUB M(the number 1) Subtract one from AC and store in AC
00100001 STOR M(D) Transfer contents of AC to location M(D)
00001111 JUMP+ M(X,0:19) If number in accumulator is non-negative take next
instruction from left half of M(X)
**************************
我們如何初始化變量'count'爲999?
** [1950 IAS](http://en.wikipedia.org/wiki/IAS_machine)** ?!爲什麼你必須爲*那個架構編寫一個程序? – nneonneo