作者rustw2010 (cherish)
看板Grad-ProbAsk
标题计组 张凡26页练习
时间Sat Jul 14 00:59:51 2018
https://i.imgur.com/tom0mdy.jpg
请问这边的t0,t1分别是代表temp和array吗?
想问那最後一行为什麽不是
sw t1,4(s6)
-----
Sent from JPTT on my iPhone
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 111.184.62.12
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Grad-ProbAsk/M.1531501194.A.50B.html
1F:推 wilson50101: 你把c code分开成上下个三行分开翻译 07/14 01:15
2F:→ wilson50101: t0是temp值最後要store回去 07/14 01:16
3F:→ wilson50101: t1只是A[4]=A[0]这个动作所需要的媒介中转而已 07/14 01:17
4F:→ rustw2010: 我不懂的是sw後的第一个位置不是代表要存进的地方吗? 07/14 01:38
5F:→ rustw2010: 这样好像变成temp=Array[1]的感觉 07/14 01:38
6F:推 TEPLUN: 不对哦 sw是将暂存器的值存到右边的地址 所以sw左边是暂存 07/14 02:03
7F:→ TEPLUN: 器(来源)并不是目的 07/14 02:03
8F:→ caydhwe13975: sw 是把register的资料存到memory 中喔 07/14 09:44
9F:→ rustw2010: 了解了感谢各位 07/14 11:38