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 bit signed integer in register $a and works as follows: if a number is a multiple of print the word Fizz. If the number is a multiple of 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 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
