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

Problem Description:

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.

Submit the Following File(s):

FizzBuzz.asm, fb_main.asm

Required Input:

A 32-bit integer. You can assume the number is non-negative.

Required Output:

Your output should look something like the following example.

Enter an integer: 20 1 2 Fizz 4 Buzz Fizz 7 8 Fizz Buzz 11 Fizz 13 14 FizzBuzz 16 17 Fizz 19 Buzz

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!