Question: In this project, we will use MARS (MIPS Assembler and Runtime Simulator). You can write MIPS assembly code in its built-in editor, assemble and run
In this project, we will use MARS (MIPS Assembler and Runtime Simulator). You can write MIPS assembly code in its built-in editor, assemble and run code by using its assembler and simulator. MARS is written in Java.
3.2 Matrix-Matrix Multiplication Define two column vectors X, Y and one Matrix B in data segment. Write an assembly language program to transpose Y. Multiply X to transpose Y and perform multiplication between their product and Matrix B. For example: dimension of X and Y are (3,1) (3 rows, 1 columns) > Transpose Y will have dimension of (1,3). Then X.Y will give you a 3x3 matrix You can define your input in the data segment as shown below: .data sizeB: .word 2,3 matrixB: .word 5,6,7,8,9,10 result: .word 0:9 You should put these numbers (row- first) in the memory space pointed by the result label. 3.2 Matrix-Matrix Multiplication Define two column vectors X, Y and one Matrix B in data segment. Write an assembly language program to transpose Y. Multiply X to transpose Y and perform multiplication between their product and Matrix B. For example: dimension of X and Y are (3,1) (3 rows, 1 columns) > Transpose Y will have dimension of (1,3). Then X.Y will give you a 3x3 matrix You can define your input in the data segment as shown below: .data sizeB: .word 2,3 matrixB: .word 5,6,7,8,9,10 result: .word 0:9 You should put these numbers (row- first) in the memory space pointed by the result label
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
