| | |
Help Assembly matrix multiplication
![]() |
•
•
Join Date: Apr 2008
Posts: 3
Reputation:
Solved Threads: 0
Assembly Syntax (Toggle Plain Text)
class Program { static void Main(string[] args) { int m = 0; int n = 0; Console.Write("Enter M : "); m = Convert.ToInt32(Console.ReadLine()); Console.Write("Enter N : "); n = Convert.ToInt32(Console.ReadLine()); Console.Write("{0} x {1} and {2} x 1 dimentional two matrix will be multiplied.\n",m,n,n); Console.Write("Enter {0} x {1} dimentional matrix elements \n", m, n); int[,] matrix1 = new Int32[m, n]; int[,] matrix2 = new Int32[n, 1]; int[,] matrix3 = new Int32[m, 1]; for (int i = 0; i < m; i++) { for (int j = 0; j < n; j++) { Console.Write("[{0},{1}]. element = ", i, j); matrix1[i,j] = Convert.ToInt32(Console.ReadLine()); } } Console.Write("Enter {0} x {1} dimentional matrix elements \n", n, 1); for (int i = 0; i < matrix2.GetLength(0); i++) { for (int j = 0; j < matrix2.GetLength(1); j++) { Console.Write("[{0},{1}]. element = ", i, j); matrix2[i, j] = Convert.ToInt32(Console.ReadLine()); } } for (int i = 0; i < m; i++) { for (int k = 0; k < matrix2.GetLength(1); k++) { for (int j = 0; j < n; j++) { matrix3[i, k] += matrix1[i, j] * matrix2[j, k]; } } } for (int i = 0; i < m; i++) { Console.WriteLine(matrix3[i, 0]); } Console.ReadLine(); } }
This is the c# coded program which i wanna reach the assembly coded one. please helpme.
![]() |
Similar Threads
- memory management in wndows 2000 (Windows NT / 2000 / XP)
Other Threads in the Assembly Forum
- Previous Thread: descending bucket sort in 68000
- Next Thread: MIPS - problem with ceil.w.s instruction
| Thread Tools | Search this Thread |





