阿摩線上測驗 登入

申論題資訊

試卷:102年 - 102 國立中山大學_碩士班招生考試_資工系(甲、乙組):計算機結構#105879
科目:中山◆資工◆計算機結構
年份:102年
排序:0

申論題內容

2. Here is a loop in C:
61e7ceb5ac488.jpg
Assume that A is an array of 100 elements and the variables g, h, i, and j are in registers $s1, $s2,
$s3, and $s4, respectively. In addition, assume that the base of the array A is in $s5. Other registers
that can be used are $tO and $t1. A possible MISP assembly code corresponding to this C loop is
showed as follows:
61e7cec3cee95.jpg
Please determine proper values for the operands (OPA, OPB, OPC, OPD, OPE). Copy the Table 2 to
your answer sheet and fill in the operand values.
61e7cecf1ce1a.jpg