We have been working very hard since 2009 to facilitate in your learning Read More. We can't keep up without your support. Donate Now.

www.vustudents.ning.com

 www.bit.ly/vucodes + Link For Assignments, GDBs & Online Quizzes Solution www.bit.ly/papersvu + Link For Past Papers, Solved MCQs, Short Notes & More

Looking for Something at Site? Search Below

# Assignment No.2 write- up updated CS401 Computer Architecture and Assembly Language Programming

 Question: 1                                                                                                                                        [20 Marks]  Write a program using a recursive function to calculate the Fibonacci of the last digit of your VU roll number, i.e.  If you roll number is BC123456789 you will calculate the Fibonacci of 9. The calculated Fibonacci number is returned in the AX register. A local variable should be used to store the return value from the first recursive call. Fibonacci function is defined as follow Fibonacci(0) = 0 Fibonacci(1) = 1 Fibonacci(n) = Fibonacci(n-1)+ Fibonacci(n-2)   Explain each instruction of program in comments and also provide/paste snapshot of your assembled and debugged program result which will be run in AFD (A Full Screen Debugger) window showing the executed code and final result i.e. value in AX.  Note: You will only use subroutine to solve the above problem. Marks will not be awarded for using any other approach.  Note 1: keep name of assembly file according to your VU id , i.e. if your VU id is BC123456789 , you will  keep name of the assembly code file as 23456789.asm i.e. you will use last 8 digits of your id for the code file name.  Note 2: If the arrays, files names in the screen shots will not be according to your VU id you will get zero marks.  Note 3: In solution file you will paste the Assembly code and screen shots.  Note 4 : You will only use NASM assembler. Rest of output snapshots are same as previously provided in assignment file.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

Views: 1361

### Replies to This Discussion

Our main purpose here discussion not just Solution

We are here with you hands in hands to facilitate your learning and do not appreciate the idea of copying or replicating solutions. Read More>>

Discussed & be touched with this discussion. After discussion a perfect solution will come in a result at the end.

Note:-

For Important Helping Material related to this subject (Solved MCQs, Short Notes, Solved past Papers, E-Books, FAQ,Short Questions Answers & more). You must view all the featured Discussion in this subject group.

For how you can view all the Featured discussions click on the Back to Subject Name Discussions link below the title of this Discussion & then under featured Discussion corner click on the view all link.

&

.... How to Find Your Subject Study Group & Join ....

P.S:    Please always try to add the discussion in proper format title like “CS101 Assignment / GDB No 01 Solution & Discussion Due Date: ___________”

Any one please discuss or share idea of solution.

## HELP SUPPORT

This is a member-supported website. Your contribution is greatly appreciated!

## Latest Activity

3 minutes ago
fad left a comment for Um-e-Abeeha
1 hour ago
1 hour ago
2 hours ago
2 hours ago

1

2

3