Question: Problem 3: (20 Marks) Write part (a) and part (6) in two separate asm files. a) Starting from the address 0x10010000 in the data segment

Problem 3: (20 Marks) Write part (a) and part (6) in two separate asm files. a) Starting from the address 0x10010000 in the data segment of MARS simulator, write matrix A as shown below in 16 consecutive memory locations in the row major order. In a row major order, memory locations will be written in the order: 54, 16, 76, 14, 5, 20, 36, 8, .... 16. 54 16 76 14 5 20 36 8 89 10 22 12 46 30 6 16 b) Continuing form the part a), with Martix A already stored in your data segment, compute and write the transpose of the given matrix A in row major order into the consecutive memory locations starting from the address 0x10010000 The transpose of a matrix is a new matrix whose rows are the columns of the original. (This makes the columns of the new matrix the rows of the original). Another way to look at the transpose is that the element at row i column j in the original is placed at row j column i of the transpose. The element aij of the original matrix becomes element aji in the transposed matrix. Problem 3: (20 Marks) Write part (a) and part (6) in two separate asm files. a) Starting from the address 0x10010000 in the data segment of MARS simulator, write matrix A as shown below in 16 consecutive memory locations in the row major order. In a row major order, memory locations will be written in the order: 54, 16, 76, 14, 5, 20, 36, 8, .... 16. 54 16 76 14 5 20 36 8 89 10 22 12 46 30 6 16 b) Continuing form the part a), with Martix A already stored in your data segment, compute and write the transpose of the given matrix A in row major order into the consecutive memory locations starting from the address 0x10010000 The transpose of a matrix is a new matrix whose rows are the columns of the original. (This makes the columns of the new matrix the rows of the original). Another way to look at the transpose is that the element at row i column j in the original is placed at row j column i of the transpose. The element aij of the original matrix becomes element aji in the transposed matrix
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
