Question: The assembly code above calculate the fibonacci number via recursion. 1. Write down the recursive equation that calculates fibonacci (a1).(5%) 2. Which register is used

 The assembly code above calculate the fibonacci number via recursion. 1.Write down the recursive equation that calculates fibonacci (a1).(5%) 2. Which register

The assembly code above calculate the fibonacci number via recursion. 1. Write down the recursive equation that calculates fibonacci (a1).(5%) 2. Which register is used to store the result? (5%) 3. What result will we get if we replace the 4 th line with 1i al, 2 ? What if 1i a1,5?(5%) 4. In this program, is registers s0 saved by the caller or callee? (5\%) 5. Which line(s) are operating the stack pointer? (5\%)

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!