Question: WRITE IN ARM CORTEX - M ASSEMBLY LANGUAGE. To exercise the four arithmetic operators, write a program to perform the following calculation: y = 0

WRITE IN ARM CORTEX-M ASSEMBLY LANGUAGE. To exercise the four arithmetic operators, write a program to perform the following
calculation:
y=0.43x3-0.81x2+1.07x
Variables x and y are 32-bit signed integers stored in a data section. Represent fixed-point
non-integer values as the ratio of two integers N/100. For example, 0.35=35100. So, to
multiply a number by 0.35, you can multiply it by 35 and then divide by 100.
Run the program three times, using the following values of x:40,-40,2000.
Do not exit the debugger to use the second and third values. With the program paused at
the final instruction, capture the Expressions View for submission, reset the CPU (use the
reset button on the toolbar), modify the memory location in which x is stored to change x
to the second value, and run the program. Repeat this sequence for the third value.
Submit your source program and the three Expressions Views, one for each of the three cases,
showing the final values of x and y in 32-bit decimal format. Examine the results, and
explain whether each case produced the expected value for y. If not, explain what resulted in
the incorrect result.
WRITE IN ARM CORTEX - M ASSEMBLY LANGUAGE. To

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!