Question: 4. Write an assembly program that calculates the value of the following polynomial, assuming signed integers x and y are stored in registers r0 and

4. Write an assembly program that calculates the value of the following polynomial, assuming signed integers x and y are stored in registers r0 and r1 respectively, using as few multiply and add or subtract instructions as possible. Test this programs for x values of 3, -4, and 9 using the TIVA board. What are the resulting values of y (as hex and base 10) for these three x values? State to the grader whether or not you have actually tested your program. Include your program (handwritten or printed). This problem can be performed using only two multiply and two add or subtract instructions or using only three multiply instructions. y = 3x^3 7x^2 +8x - 2

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 Databases Questions!