Question: Use start.asm as an example. You probably do not need to modify readwrite.asm, just familiarize yourself with the code so you can use it example.

Use start.asm as an example. You probably do not need to modify readwrite.asm, just familiarize yourself with the code so you can use it example. Write a Fibonacci Sequence for 45 terms, starting with the numbers 1 and 2. Modify main.asm so it calls your code. Submit all three files.
The Fibonacci Series is a sequence where the last two numbers are added together to calculate the next number. Normally, it starts with 0 and 1. However, for this program I request that you start with 1 and 2. Examples:
1+2=3
2+3=5
3+5=8
5+8=13
Create a routine in a new file that creates and prints the sequence. Have the call to this routine accept a number less than 45. Have the routine print all of the Fibonacci Sequence to that term. Be sure to leave a space between each term. The challenge may be converting an integer into something than can be printed. This would be a good discussion where you can help each other come up with an algorithm to print numbers.

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 Programming Questions!