Matrix addition and matrix multiplication will be performed for 3x3 size using Assembly programming.
Matrix Addition Operation
Aim:
To perform the addition of two 3x3 matrices using Assembly language for 8086 microprocessor.
Software Used:
MASM
Program Code:
Sample Input and Output:
Matrix 1: Matrix 2: Output:
11 22 33 66 55 44 77 77 77
44 55 66 66 55 44 AA AA AA
77 88 99 66 55 44 DD DD DD
Result:
Thus the matrix addition operation is performed.
Matrix Multiplication Operation
Aim:
To perform the multiplication of two 3x3 matrices using Assembly language for 8086 microprocessor.
Software Used:
MASM
Program Code:
Sample Input and Output:
Matrix 1: Matrix 2: Output:
11 22 33 66 55 44 1E 1E 1E
44 55 66 66 55 44 3C 3C 3C
77 88 99 66 55 44 5A 5A 5A
Result:
Thus the matrix multiplication operation is performed.
No comments:
Post a Comment