INSTRUCTION TO SOLVE THIS SECTION B: THE BELOW LINK IS THE TUTORIAL FOR HOW TO SOLVE FLOATING POINT CALCULATIONS USING ASSEMBLY LANGUAGE:
https://chortle.ccsu.edu/AssemblyTutorial/Chapter-…
SOTWARE REQUIIRED IS QTSPIM
SUBMISSION INSTRUCTIONS: You are required on google drive. Your folder must include the following
1. Executable code , example(add.s)
2. Code in word document
3. Input and outputs screen short.
Q1- Write a MIPS 32 Assembly program that implements the following high-level C code:
float B=7.8 ;
float M=3.6;
float N=7.1;
float R = (- M * N) (M-B);
Q2- Implement the following C code in a complete MIPS 32 assembly language program. Substitute calls to syscall print float for the printf() function calls:
float X;
float Y;
if( X < Y )
printf(“X is lowern”);
else
printf(“X is not lowern”);
Run the program three times, each time assigning two values to X and Y that test your program’s logic. Choose the pairs of numbers from the following table:
1 7210260.5
2 7210272.15
3 9210720.2
4 9210059.25
5 11110029.3
6 12117021.4
Submit both your assembly code and sample output along with the chosen pairs from the above table. (one screen-shot of the output)
Q3: Area of a circle
Write a MIPS32 Assembly program that prompts the user for the radius of a circle. Calculate and display the circle’s area. Use the syscall procedures to read and print floats. Use PI as : 3.14159265359
Q4: Quadratic Function
Write a MIPS32 Assembly program to implement the following quadratic function: F(x) = 3×2 2x 8
The program should get the value of x from the user and then solve the equation and print the value of
F(x) to the console. Use the syscall procedures to read and print floats.
Consider the following information, and answer the question below. China and England are international trade…
The CPA is involved in many aspects of accounting and business. Let's discuss some other…
For your initial post, share your earliest memory of a laser. Compare and contrast your…
2. The Ajax Co. just decided to save $1,500 a month for the next five…
How to make an insertion sort to sort an array of c strings using the…
Assume the following Keynesian income-expenditure two-sector model: AD = Cp + Ip Cp = Co…