Question: write an assembly language program that meets the following specifications: The program must prompt the user for an integer number, which will be used to

write an assembly language program that meets the following
specifications:
The program must prompt the user for an integer number, which will be used to determine the Fibonacci number.
The Fibonacci number is a sequence of integers of the following form 1,1,2,3,5,8,12, etc where the series starts with 1,1 and every succeeding value is the sum of the two previous values.
Echo to the user the input parameter in a nicely formatted way.
The program must compute the nth value of the Fibonacci series using recursion , use the formula fn = fn-1+ fn-2 and the base cases are f0=1 and f1=1.
Make liberal use of whitespace to have a nicely formatted output.
Your program must work correctly with any proper 16 bit integer.
Your program must use recursive procedure (subroutine) calls to solve the
problem. Use the BP register to access the parameters on the stack without
popping them off. The stack must be cleaned when the procedure returns to itself and the main calling program.
PLEASE PROVIDE WHOLE CODE WITH EXPLANTION. THIS CODE SHOULD BE WORK WITH TURBO ASSEMBLER(TASM) AND DOS BOX.
ALSO USE .STACK 200H
THANK YOU

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!