Question: Write and test a friendly MIPS assembly program that calculates and prints Fibonacci numbers. Specifically, your program should be divided into the following four sections,

Write and test a friendly MIPS assembly program that calculates and prints Fibonacci numbers. Specifically, your program should be divided into the following four sections, which must perform several specific tasks. Section 1: Introduction Print an introduction that includes: your name, a title, and (optionally) a description of the program. Prompt the user to enter their name and read in the string input. (You should reserve 64 bytes in data memory for this string.) Print a greeting that includes the users name. Section 2: Get and validate n Prompt the user to enter a number between 1 and 47 (inclusive); read in the input (well call this n). Check that n is within the range. If not, print an error message and prompt the user again. Repeat until the user enters a valid number. Section 3: Calculate and print the first n Fibonacci numbers Calculate and print each of the Fibonacci numbers up to and including the nth. The first 9 numbers should be: 0, 1, 1, 2, 3, 5, 8, 13, 21, . . . (Note that you should start at 0.) Numbers should be printed exactly five per line, with at least four spaces between numbers on a line. Note that you do not need to store the Fibonacci numbers in memory. You may just print them as they are computed. Note: Please make this program compatible so I can run it on Mars MIPS Simulator

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!