Question: CS - Assembly Language Programming Fibonacci Numbers With the use of a loop, write an assembly program that calculates the first nine values of the
CS - Assembly Language Programming
Fibonacci Numbers With the use of a loop, write an assembly program that calculates the first nine values of the Fibonacci number sequence and put the result in eax register. The Fibonacci number sequence is described by the formula: Fib(1) = 1, Fib(2)=1, Fib(n) = Fib(n-1) + Fib(n-2)
You will get this sequence for the first nine values: 1, 1, 2, 3, 5, 8, 13, 21, 34 The result in eax needs to be 34.
Write it in Assembly Language!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
