VU HELP

Virtual University of Pakistan Study forum !

CS401-Assignment#02-Spring2018-Due Date ; 24th may, 2018

Question: [15 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 stored in the AX register.
Fibonacci(0) = 0
Fibonacci(1) = 1
Fibonacci(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 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 write the assembly code and paste two screen shots.
Note 4: You will only use NASM assembler and AFD debugger only.

Views: 1337

Attachments:

Replies to This Discussion

solution plzzzz

Idea solution

Attachments:

thank you came4studies

No one told where to write last digit of VU ID ????????????????

Discussion Forum

CS401 GDB solution

Started by Muhammad Anwar Tahseen Feb 5.

CS401 ASSIGNMENT 2 SOLUTION

Started by Muhammad Anwar Tahseen Jan 29.

CS401 Current Midterm Papers - Dec, 2018 to Jan 2019

Started by + caмe4ѕтυdιeѕ.
by + caмe4ѕтυdιeѕ Jan 2.

Need Soluton of CS401 first assignment

Started by Raja Kamran Dec 5, 2018.

CS 401 Assignment Solution Needed

Started by Sayyeda Shah.
by imran @ Imran Dec 4, 2018.

CS401 Finalterm Papers from Sep 1st to 13th, 2018

Started by + caмe4ѕтυdιeѕ.
by + caмe4ѕтυdιeѕ Nov 6, 2018.

CS401-GDB-Open Date : 9 August 2018 Due Date : 10 August 2018

Started by Mute.
by Dilawar Rock and Rock. Aug 10, 2018.

CS401 Assign # 3 Due Date: 31st July, 2018

Started by + caмe4ѕтυdιeѕ.
by Cute S@mra Aug 1, 2018.

CS401 Current paper Qs of Midterm spring 2018 ....!!!!!

Started by saba Jun 28, 2018.

Started by Mute.