[理工] 计算机组织MIPS寻址模式

楼主: gsmzxcvbnm   2016-05-30 14:14:45
有几题想问问
http://i.imgur.com/TyFuk77.jpg
http://i.imgur.com/5Cmd4e0.jpg
http://i.imgur.com/poLa6nq.jpg
那个code bytes 的Load store怎么会是4+4+3+4应该都是4才对呀?
add $3,$1,$2应该是1+1+1+1呀?
http://i.imgur.com/gilTxwZ.jpg
http://i.imgur.com/ASvWSKo.jpg
这题的bit数到底怎么判断的呀?而且才16bit答案怎么就用
掉11bit了?
谢谢各位大大
作者: oceanblue94 (Orange)   2016-05-30 19:06:00
add $3,$1,$2是1+0.5+0.5+0.5=2.5取整数3,暂存器号码4bits=0.5bytes
作者: jeff830107 (蛆之别院)   2016-05-30 15:54:00
第二题因为6+10总共16种运算,所以op是2^4,用4bit来纪录16个register,一样是4bit来纪录,所以rs是4bit6种Logic/arithmetic运算(R-type),所以3bit来纪录是哪种运算

Links booklink

Contact Us: admin [ a t ] ucptt.com