Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write the main program that allocates two arrays of 8-bit signed numbers and cal

ID: 3664842 • Letter: W

Question

Write the main program that allocates two arrays of 8-bit signed numbers and calculates their scalar product using two different approaches (a) and (b). The final result of approach should be stored in R6 and the final result of approach should be stored in R5. Write a subroutine m8x8sa using the MSP430 assembly language to multiply two signed 8-bit integers and return back the 16-bit result. Use shift-and-add method to multiply two numbers. Pass parameters through general-purpose registers. Write a subroutine m8x8h using the MSP430 assembly language to multiply two signed 8-bit integers and return back the 16-bit result. Use hardware multiplier of the MSP430 to perform multiplication. Pass parameters through the stack.

Explanation / Answer

------------------------------------------------------

The code: