Question: Using the MSP 4 3 0 F 5 5 2 9 and the Texas Instruments Code Composer assembly language, write the solution to the following

Using the MSP430F5529 and the Texas Instruments Code Composer assembly language, write the solution to the following request:
Write a reduceSum16 subroutine that returns the sum of all 16-bit numbers and returns a 32-bit value. Use the ADDC instruction to take into account the carry of the sum in the most significant part. The routine receives as input:
R12 Address of the array
R13 Size of the array
And returns:
R12 The 16 least significant bits (LSWord)
R13 The 16 most significant bits of the sum (MSWord)
Test your program with a 16-bit integer array, initializing the memory with the .word pseudo-instruction

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!