Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can anyone help with this? Use INTEGER instruction. MIPS has single and double-precision floating-point instructions for adding, subtract- ing and multiplying and dividing. The purpose

image text in transcribed

Can anyone help with this? Use INTEGER instruction.

MIPS has single and double-precision floating-point instructions for adding, subtract- ing and multiplying and dividing. The purpose of this lab is however to develop the function MYADD that performs addition of two single-precision operands, written com pletely in assembly language using integer instructions Make space in the data segment of the your program for 3 words to place the single- precision floating-point number operands A, B, and C. Your function MYADD will perform the operation C- A B and place it in C Test your programs using the following inputs. First convert these numbers to the floating-point on paper: CA+B- 12.5 +3.516.0 CAB-2.25 + (-4.25) - 2.0 Then, perform your functions on SPIM with these operands, and check to see if they are correct. You can test your function using other input values, but make sure it works at least for the one above. Your function assumes that A and B are given, and computes C . To simplify the development, you may ignore rounding operation in your function. Just perform truncation operation in your program whenever it would be needed MIPS has single and double-precision floating-point instructions for adding, subtract- ing and multiplying and dividing. The purpose of this lab is however to develop the function MYADD that performs addition of two single-precision operands, written com pletely in assembly language using integer instructions Make space in the data segment of the your program for 3 words to place the single- precision floating-point number operands A, B, and C. Your function MYADD will perform the operation C- A B and place it in C Test your programs using the following inputs. First convert these numbers to the floating-point on paper: CA+B- 12.5 +3.516.0 CAB-2.25 + (-4.25) - 2.0 Then, perform your functions on SPIM with these operands, and check to see if they are correct. You can test your function using other input values, but make sure it works at least for the one above. Your function assumes that A and B are given, and computes C . To simplify the development, you may ignore rounding operation in your function. Just perform truncation operation in your program whenever it would be needed

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

Advances In Databases And Information Systems Second East European Symposium Adbis 98 Poznan Poland September 1998 Proceedings Lncs 1475

Authors: Witold Litwin ,Tadeusz Morzy ,Gottfried Vossen

1st Edition

3540649247, 978-3540649243

More Books

Students also viewed these Databases questions