Question: Write a ARM program that computes terms of the Fibonacci series, starting with 0. Write the program as a counting loop for terms 3 and

Write a ARM program that computes terms of the Fibonacci series, starting with 0.

Write the program as a counting loop for terms 3 and on. You should test your output for the 11th terms of the series. You are not saving all of the terms, only the last TWO which are then used to compute the next term. Use a register for the current term and a register for the previous term. Each execution of the loop computes a new current term (in a third register) and then copies the old current term to the previous term register and the new term to the current term register. You will also need a fourth register for your loop counter.

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!