7) Fill the final vales of the Register file and Data memory after the following
ID: 3891223 • Letter: 7
Question
7) Fill the final vales of the Register file and Data memory after the following assemble code has been executed. Vales in Mare the initial values before the assemble code is executed. Show temporary values to help with giving partial credit, and if an entry is unknown after executing the code then leave blank. Part a and part b are independent of each other [10 pts (Graded a) 5 pts MOVW R10, 0xFFF4 MOVT R10, 0xFFFF ANDS RO, 0x0077FE STR R0, [R10, #0] Register File Reg R15 R14 R13 R12 R11 R10 R9 R8 R7 R6 R5 R4. R3 R2 R1 RO Data Memory Value Address 0xFFFF FFFF 0xFFFF FFFE 0xFFFF_FFFD 0xFFFF_FFFC 0xFFFF FFFB 0xFFFF_FFFA 0xFFFF_FFF9 (0xF4) 0xFFFF_FFF8 (0x0A) 0xFFFF_FFF7 (0x07) 0xFFFF_FFF6 (0x03) 0xFFFF_FFF5 (0x01) 0xFFFF_FFF4 (0x04 0xFFFF_FFF3 (0xC0) 0xFFFF_FFF2 (0xFF) 0xFFFF_FFF1 0xFFFF FFFO ValueExplanation / Answer
a)
movw r10, 0xFFF4 => r10 = 0x0000 FFF4
movt r10, 0xFFFF => r10 = 0xFFFF FFF4
LDR r0, [R10] , #4 => r0 = mem[0xFFFF FFF4 + 0x4] => r0 = 0x0A
ANDS R0, 0x0077FF => r0 = r0 & 0x0077FF = 0x0A & 0x0077FF = 0x0A
STR R0, [R10 ,#0] => mem[0xFFFF FFF4] = 0x0A
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.