Question
I need urgent help with these 2 programs. One needs to be in assembly and one needs to be in C using codewarrior (Im not
I need urgent help with these 2 programs. One needs to be in assembly and one needs to be in C using codewarrior (Im not sure if there is a difference in this and other IDEs). I dont even know where to start with these 2.
Write an assembly program and a C program (in CodeWarrior) to calculate the value of following polynomial function:
f(x)=x-x^3/6+x^5/12 0 is equal to or less than x and x is less than or equal to 6
The value of x will be provided by a user through the DIP switches. Suggestion: Please use following formula to raise a number to the desirable power: x2 = x*x, x3 = x2*x and x5 = x2*x3. Please save every calculation result to memory.
For this project, your assembly program must:
Use MUL and IDIV instructions.
Use DS.B and DS.W to create variables with the right sizes to store and retrieve data.
Have a EQU section, a data section, and a code section
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started