Question: Write and test the FizzBuzz function in two linked files. Your solution must be made up of the following two components: A function called FizzBuzz

Write and test the FizzBuzz function in two linked files. Your solution must be made up of the following two components:
A function called FizzBuzz that accepts a 32-bit signed integer in register $a0 and works as follows: if a number is a multiple of 3, print the word Fizz. If the number is a multiple of 5, print the word Buzz. If the number is a multiple of both, print FizzBuzz. Otherwise, it prints the number.
An assembly 'main' program that accepts an integer from the user and calls the FizzBuzz function for each number from 1 to the users input. It should prompt the user for the entered integer.

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 Programming Questions!