看板 Grad-ProbAsk 關於我們 聯絡資訊
各位板大可以請教一題題目嗎??~ 感謝~~ 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
zeowo:標題錯誤喔,請依版規修改吧!! 09/01 23:53