[理工] 計組 MIPS
Assume that the variables i,j are assigned to registers $s3,$s4 respectively.
Assume that the base of address of the arrays A B are in registers $s5 $s6
respectively.
B[8]=A[i-j]; for C statesments
找出對應的mips
解答:
意思
sub $t0,$s3,$s4 //i-j
add $t0,$s5,$t0 //A[i-j]
lw $t1,16($t0) //??????
sw $t1,32($s6) //
想請問第三行的意思 為甚麼要乘上16
補題目http://imgur.com/ejYzKWx

--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.113.69.43
※ 文章網址: https://www.ptt.cc/bbs/Grad-ProbAsk/M.1443246099.A.880.html
→
09/26 14:30, , 1F
09/26 14:30, 1F
→
09/26 14:30, , 2F
09/26 14:30, 2F
→
09/26 14:30, , 3F
09/26 14:30, 3F
→
09/26 14:30, , 4F
09/26 14:30, 4F
→
09/26 14:31, , 5F
09/26 14:31, 5F
→
09/26 14:31, , 6F
09/26 14:31, 6F
→
09/26 14:31, , 7F
09/26 14:31, 7F
→
09/26 14:32, , 8F
09/26 14:32, 8F
※ 編輯: json16boy (140.113.69.43), 09/26/2015 22:22:41
→
09/26 22:28, , 9F
09/26 22:28, 9F
推
09/26 22:55, , 10F
09/26 22:55, 10F
推
09/26 23:21, , 11F
09/26 23:21, 11F
→
09/26 23:27, , 12F
09/26 23:27, 12F
→
09/27 12:25, , 13F
09/27 12:25, 13F
→
09/27 16:16, , 14F
09/27 16:16, 14F
→
09/27 16:23, , 15F
09/27 16:23, 15F
→
09/27 16:29, , 16F
09/27 16:29, 16F
→
09/27 16:30, , 17F
09/27 16:30, 17F
→
09/27 16:30, , 18F
09/27 16:30, 18F
→
09/27 16:30, , 19F
09/27 16:30, 19F
→
09/27 16:30, , 20F
09/27 16:30, 20F
→
09/27 16:31, , 21F
09/27 16:31, 21F
→
09/27 20:35, , 22F
09/27 20:35, 22F
討論串 (同標題文章)