Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essentials of Database Management

Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman

1st edition

133405680, 9780133547702 , 978-0133405682

More Books

Students also viewed these Databases questions