Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I received this as a project, but am having problems with writing it as my instructor is unwilling to help. I need someone to post

I received this as a project, but am having problems with writing it as my instructor is unwilling to help. I need someone to post an example of how you would code this with an explanation.

Requirement: You must demo your program on the EVBplus2 or Fox11 board.

Goal: To become familiar with allocating memory for your program, gain experience in dealing with 8-bit numbers including signed numbers and 16-bit numbers, and understand and use some basic instructions such as arithmetic instructions.

Project: Please read Chapter 5 of your textbook, and then write an assembly program and a C program to calculate the value of following polynomial function:

image text in transcribed

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. Please pay great attention to the issue of data size: Should a piece of data be stored in one byte or two bytes?

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

Project Results:

f(x) = x-6. +120 0sxs6

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

More Books

Students also viewed these Databases questions

Question

What is quality of work life ?

Answered: 1 week ago

Question

What is meant by Career Planning and development ?

Answered: 1 week ago

Question

What are Fringe Benefits ? List out some.

Answered: 1 week ago

Question

5 The mechanics of the circular flow model.

Answered: 1 week ago

Question

1 The difference between a command system and a market system.

Answered: 1 week ago

Question

4 How the market system adjusts to change and promotes progress.

Answered: 1 week ago