Question: You will write a MIPS assembly program that mimics this C + + code: void FizzBuzz ( int a [ ] , int al )
You will write a MIPS assembly program that mimics this C code:
void FizzBuzzint a int al
for int i ; i al; i
if ai && ai
std::cout FizzBuzz;
else if ai
std::cout Buzz;
else if ai
std::cout Fizz;
else
std::cout ai;
again you dont need to implement main
int main
int arr;
int alength ;
FizzBuzzarr alength;
Expected Output : Fizz Buzz Fizz Fizz Buzz
Given: main does not have any variables in $s registers.
A skeleton assembly program that you will complete to write your code is available to you in the fizzbuzz.asm file. Your solution MUST INCLUDE a welldesigned function call.
While FizzBuzz typically counts from your code should work on any arbitrary array. On our end, for testing purposes we may use different arrays, so your code should work with any other valid nonempty array.
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
