[理工] 計組 the direct addressing mode

看板Grad-ProbAsk作者 (還很新)時間9年前 (2016/12/17 15:49), 9年前編輯推噓5(504)
留言9則, 4人參與, 最新討論串1/1
題目: Addressing modes constitute a very important topic when people discuss alterna tive designs of CPUs. Common addressing modes include register, immediate, dir ect, and PC-relative mode, etc. Find a wrong statement from the following choi ces. (A) Every CPU supports the direct addressing mode. (B) In practice, having immediate, direct, register, and indexed mode is enough fo r almost all applications. (C) Compilers are in charge of finding the best addressing modes for statements wr itten in high-level languages. (D) When offering a limited number of addressing modes, the architecture must make sure that common applications will be computable. (E) none of the above. 答案是給A,我不是很明白為什麼,有辦法舉出反例之類的嗎,比如哪一種架構的電腦不 使用直接定址(只使用其他的定址方式)? B選項的indexed mode也不是很懂... -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 223.137.122.253 ※ 文章網址: https://www.ptt.cc/bbs/Grad-ProbAsk/M.1481960993.A.75A.html ※ 編輯: newpuma (223.137.122.253), 12/17/2016 16:33:22

12/17 18:32, , 1F
題目說找錯誤的選項欸,所以A是錯的吧
12/17 18:32, 1F
小弟精神狀況差 眼殘QQ

12/17 18:34, , 2F
indexed mode我上網查了一下,和Base addressing mode差
12/17 18:34, 2F

12/17 18:35, , 3F
不多,可參考
12/17 18:35, 3F

12/17 18:36, , 4F
啊啊 網址太長了貼不下
12/17 18:36, 4F

12/17 18:36, , 5F
反正打computer architecture indexed mode會有啦
12/17 18:36, 5F

12/17 19:52, , 6F
使用mips的就不會support喔只有課本上那五種 另外像是sta
12/17 19:52, 6F

12/17 19:52, , 7F
ck machine也不會有
12/17 19:52, 7F
感恩感恩!

12/17 20:56, , 8F
可以參考MSP430的架構,addressing mode有很多種
12/17 20:56, 8F
※ 編輯: newpuma (223.137.122.253), 12/17/2016 21:31:14

12/18 11:09, , 9F
文章代碼(AID): #1OLEuXTQ (Grad-ProbAsk)