# SUPERSTARWEBTECH

There is no elevator to success. You have to take the stairs. Take your first steps with SSWT!

# CS401-Computer Architecture and Assembly language programming | Assignment no. 2 Solution | Spring 2018 | Due Date: 24 May, 2018

 CS401- 2nd Assignment solution spring 2018 Due date: 24 May 2018 Question: Write a program using a recursive function to calculate the Fibonacci of the last digit of your VU roll number,i.e. If your roll number is BC123456789 you will calculate the Fibonacci of 9. The calculated Fibonaccithe number is stored in the AX register.Fibonacci(0) = 0Fibonacci(1) = 1Fibonacci(n) = Fibonacci(n-1)+ Fibonacci(n-2)Source:- https://en.wikipedia.org/wiki/Fibonacci_number Explain each instruction of program with comments and also provide/paste a snapshot of your assembled and debugged program result which will be run in AFD (A Full-Screen  Debugger) window showing the executedcode and final result i.e. value in AX. Note: You will only use a subroutine to solve the above problem. Marks will not be awarded for using any other approach. Note 1: keep the name of assembly file according to your VU id, i.e. if your VU id is BC123456789, you will keep the name of the assembly code file as 23456789.asm i.e. you will use last 8 digits of your id for the codefile name.Note 2: If the arrays, files names in the screenshots will not be according to your VU id you will get zeromarks.Note 3: In the solution file, you will write the assembly code and paste two screenshots.Note 4: You will only use NASM assembler and AFD debugger only.

## Author

### Anam Afzal

Hi, I'm a Pakistani freelancer with a passion for helping businesses achieve their online goals through no-code solutions. I specialize in WordPress customization and ManyChat automation, and I'm always on the lookout for new ways to use technology to make businesses more efficient and successful. I'm also a big believer in the power of no-code tools to democratize technology and make it accessible to everyone. I'm passionate about sharing my knowledge and helping others learn how to use no-code tools to create their own websites, automate their workflows, and grow their businesses. If you're looking for a reliable and experienced no-code developer, I'm here to help. Please feel free to contact me to discuss your project requirements.
Blog

Blog

Blog