0% found this document useful (0 votes)
24 views

Coal Lab 8: (Bcs-F17-Aft)

The document provides instructions for a coal lab assignment on matrix operations using 2D arrays in assembly language. It includes 4 tasks: 1) write a procedure to take input and store values in a 3x3 matrix, 2) write a procedure to display the matrix values, 3) write a procedure to take the transpose of the matrix, and 4) write a procedure to add two matrices.

Uploaded by

ANJUM KHAN
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views

Coal Lab 8: (Bcs-F17-Aft)

The document provides instructions for a coal lab assignment on matrix operations using 2D arrays in assembly language. It includes 4 tasks: 1) write a procedure to take input and store values in a 3x3 matrix, 2) write a procedure to display the matrix values, 3) write a procedure to take the transpose of the matrix, and 4) write a procedure to add two matrices.

Uploaded by

ANJUM KHAN
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Instructor: Yasin Nasir Thursday, November 22,2018

Coal Lab 8
(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 ?,?,?
DW ?,?,?
(Matrix of order: 3x3)

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

Sample Execution:
Enter values for row1: 8 9 7
Enter values for row2: 3 1 6
Enter values for row3: 14 4 3
Instructor: Yasin Nasir Thursday, November 22,2018

Task 2: Write a Procedure to Display matrix values on screen.

Sample Execution:

8 9 7
3 1 6
14 4 3

Task 3: Write a Procedure to take Transpose of matrix.

Sample Execution:

8 3 14
9 1 4
7 6 3

Task 4: Write a Procedure to ADD two matrices.


Matrix Addition:

You might also like