$30
Q1: Write an assembly program that will take two 2 × 2 matrices as input, add them, and print the resultant matrix. You have to use arrays for taking input, for performing the addition operations, and for the final resultant matrix. Please note that, while the entries of the matrices will be non-negative single digit numbers, the entries of the output matrix can be two-digit numbers. Also, you need not print the square brackets of the output matrix.
Sample Input
Sample Output
Q2: Using recursion, write an assembly program that will take a non-negative two-digit integer number n as input, and print the first n numbers of the Fibonacci sequence.
Sample Input
Sample Output
01
0
02
0, 1
04
0, 1, 1, 2
10
0, 1, 1, 2, 3, 5, 8, 13, 21, 34