You are on page 1of 3

Instructor: Yasin Nasir Thursday, November 29,2018

Coal Lab 9
(BCS-F17-AFt)

Instructions:
 Attempt all tasks in the given order.
 Discussion with each other is not allowed.
 Indent your code properly
 Must Validate your input

Matrix Operations (2D Arrays)

Declare 2D Array in data segment as


Matrix DW ?,?
DW ?,?
(Matrix of order: 2x2)

Task 1: Write a Procedure that takes Input from user and store values in matrix.

Sample Execution:
Enter values for row1: 8 9
Enter values for row2: 3 1
Instructor: Yasin Nasir Thursday, November 29,2018

Task 2: Write a Procedure to find determinant of matrix and store it in some


variable.
Determinant of Matrix

Sample Execution:

Determinant of matrix: 4

Task 3: Write a Procedure to find Adjoint of a matrix. You are not allowed to
change the contents of above matrix. So create a new matrix and store the values
of adjoint in new matrix.

Adjoint of Matrix

Sample Execution:
Adjoint of matrix

1 -9
-3 8
Instructor: Yasin Nasir Thursday, November 29,2018

Task 4: Write a Procedure to find Inverse of a matrix.


Matrix Inverse:

Task 5: Write a procedure to display decimal number on screen as we discussed in


class but with little modification.
Decimal Output without using MUL,IMUL,DIV,IDIV

Task 6: Decimal Input without using MUL,IMUL,DIV,IDIV

You might also like