作者li918272002 (水蓝微风)
看板Grad-ProbAsk
标题[理工] 请问计组MIPS问题
时间Tue Sep 1 22:45:24 2009
各位板大可以请教一题题目吗??~
感谢~~
Q:
R8 = 0x11223344
R9 = 0xFADEABAD
R10 = 0x55667788
What is final value of R2 in hexadecimal, using all eight
digits (that is write 0x00000000 and not 0x0), after the
execution of each sequence of instructions, for both
little- and big-endian machines? If any access in the
sequence is misaligned, write'misaligned' instead of an answer.
- Little-Endian - Big-Endian
---------------------------------------------------------------
- -
STW R9, 0(R8) - - ?
LDW R2, 0(R8) - ? -
- -
----------------------------------------------------------------
- -
STB R9, 3(R8) - -
LDB R2, 3(R8) - ? - ?
- -
------------------------------------------------------------------
- -
STB R9, 3(R8) - -
LDBU R2, 3(R8) - ? - ?
- -
------------------------------------------------------------------
- -
STH R9,1(R8) - -
LDB R2,1(R8) - ? - ?
- -
-------------------------------------------------------------------
STW R10,0(R8) - -
LDB R2,1(R8) - ? - ?
- -
-------------------------------------------------------------------
STW R10,0(R8) - -
LDH R2,2(R8) - ? - ?
- -
-------------------------------------------------------------------
- -
STH R10,2(R8) - ? - ?
LDB R2,3(R8) - -
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 220.132.27.130
1F:推 zeowo:标题错误喔,请依版规修改吧!! 09/01 23:53