We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>
+ Link For Assignments, GDBs & Online Quizzes Solution
+ Link For Past Papers, Solved MCQs, Short Notes & More
Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion
How to Add New Discussion in Study Group ? Step By Step Guide Click Here.
please discuss and solve this assignment It is tough because , I got same solution of assignment no 1 replace of assignment 2 ....So discuss it seriously and Solve this problem...Thanks
.+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)
+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)+ Click Here to Search (Looking For something at vustudents.ning.com?) + Click Here To Join (Our facebook study Group)
Koi idea share kr do
Here is the Complete Solution of CS401 assignment:
Ye assignment 1 ka solution hai.
2 ka nahi
; This is recursive Fibonacci series plz add it into your code area.
PUSH BP ; save previous frame pointer
MOV BP, SP ; set current frame pointer &n sp;
MOV AX, [BP+8] ; get argument N
CMP AX, 1 ; N<=1?
JA Recurse ; no, compute it recursively
MOV CX, 1 ; yes, Fib(1)--> 1
DEC AX ; = N-1
MOV DX, AX ; = N-1
PUSH DX ; save N-1
PUSH AX ; set argument = N-1
CALL Fibonacci ; compute Fib(N-1) to
POP AX ; pop N-1
DEC AX ; = N-2
PUSH CX ; save Fib(N-1)
PUSH AX ; set argument = N-2
CALL Fibonacci ; compute Fib(N-2) to
POP AX ; = Fib(N-1)
ADD CX, AX ; = Fib(N-1)+FIB(N-2)
MOV SP, BP ; reset stack to value at function entry
POP BP ; restore caller's frame pointer
RET ; and return
This is not assignmnet 2 please discuss of assignment 2 idea please, assignment 2 of Computer Architecture and Assembly Language Programming– CS401 is attached.
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)
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
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
Note 2: If the arrays, files names in the screen shots will not be according to your VU id you will get zero
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.
1) First screen shot will be shown as below according to your VU Id
2) Your final screen shot AX will contain the value of Fab(last digit of your id) ,
All of you are requested, Please post Only One Discussion for Current Assignment/GDB/Online Quiz and everyone reply/share/discussed his/her data on that same discussion, so that all members get solution & discuss easily on Current Assignment/GDB/Online Quiz.
So please don’t post two or more discussions for one Current Assignment/GDB/Online Quiz, hope you’ll understand and cooperate with us.
plaese upload here assignment No 2
This is the solution for the assignment # 1 .....
Here is assignment # 2 Solution file..
any one doubt then clear me..
is it correct solution?