.386 Assembly Code:
Given the following data segment where matrix1 and matrix2represent square matrices of size n x n (n = 3 in the given casebut it can be of any dimension) stored in row major order, write aprogram that multiply these two matrices and store the resultantmatrix in resultantmatrix again in row major order.
.data
matrix1 dword 1,2,3,4,5,6,7,8,9
matrix2 dword 1,2,3,4,5,6,7,8,9
resultantmatrix 9 dup(?)
Since the matrices can be of any dimension, you must write aprocedure named squareroot to figure out the dimension by takingthe square root of the length of array. To find square root, usemethod of repeated odd numbers subtraction. For scalarmultiplication, use
PayPal Gateway not configured
PayPal Gateway not configured