madthug
Newbie
Write a program to check if a given m × m matrix
. The matrix dimension m is stored in 60H and the memory location
corresponding to the 1st element of the matrix is 61H. If the given matrix is symmetric
then set the user definable bit in program status word (PSW) i.e., set P SW.5 to 1
else set it to 0. The matrix dimension m can be 2, 3, or 4. Assume the matrix M to
be stored in row-major form, i.e., element M(1, 1) is in the 1st location, M(1, 2) is
in the 2nd location, . . . , M(m, m − 1) is in the (m − 1)*m-th location and M(m, m)
in the m^2
-th location.
Example: If the value stored in 60H is 3 and values stored in 61H, 62H, . . ., 69H are
1, 4, 3, 4, 1, 2, 3, 2, 1, respectively, then set P SW.5 to 1.
. The matrix dimension m is stored in 60H and the memory location
corresponding to the 1st element of the matrix is 61H. If the given matrix is symmetric
then set the user definable bit in program status word (PSW) i.e., set P SW.5 to 1
else set it to 0. The matrix dimension m can be 2, 3, or 4. Assume the matrix M to
be stored in row-major form, i.e., element M(1, 1) is in the 1st location, M(1, 2) is
in the 2nd location, . . . , M(m, m − 1) is in the (m − 1)*m-th location and M(m, m)
in the m^2
-th location.
Example: If the value stored in 60H is 3 and values stored in 61H, 62H, . . ., 69H are
1, 4, 3, 4, 1, 2, 3, 2, 1, respectively, then set P SW.5 to 1.