12-08-2014, 03:49 PM
CS401 Computer Architecture and Assembly Language Programming No-1 Assignment Last Date 11 Dec 2014
Computer Architecture and Assembly Language Programming (CS401) Assignment # 02 (Graded) December 11, 2014
1) You should concern recommended books to clarify your concepts as handouts are not sufficient.
2) You are supposed to submit your assignment in .doc format. Any other formats like scan images, PDF, zip, rar, bmp etc will not be accepted.
Topic Covered:
Branching Techniques.
Bit Manipulation.
Subroutines.
Question Statement:
Write a complete assembly language code having two subroutines:
One will be named as Fibonacci_series used to generate a Fibonacci series of first 10 elements.
Second will be named as Fibonacci_sum and will find the sum of all elements in a generated Fibonacci series/array.
Hint: Make a series/array named as Fibonacci_array and a lable named as fib_sum.
Fibonacci_array will contain the generated Fibonacci sequence elements, while fib_sum is used to store the sum of an array (Fibonacci array).
You can define Fibonacci array as:
Fibonacci_array: DW 0 1
Fib_sum = Fibonacci (0) + Fibonacci (1) + … + Fibonacci (10).
Fibonacci function is defined as follows:
Fibonacci (0) = 0
Fibonacci (1) = 1
Fibonacci (n) = Fibonacci (n-1) + Fibonacci (n-2)
You have to calculate till Fibonacci (10).
You have to attach a final snapshot of your debugger showing the Fibonacci series and Fibonacci sum in Data segment (DS)
0300-9520262
Get solution in 24 hour |cpmputer & internet
mileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
