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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started