Total points towards grade: 5/100 Homework is submitted electronically on the Canvas. E-mail submissions will not be accepted. Assembly code must be submitted in text format. Add comments inside your code explaining the purpose of each instruction (where applicable). Code without comments will not earn credit. Assume that you are working with ARM Cortex-M3/M4 processor. Use Keil uVision to test your assembly program. Homework: 5 points Write an ARM assembly program to check whether an Nx N matrix is a magic square. A magic square is an Nx N matrix in which the sums of all rows, columns, and the two diagonals add up to N(N+ 1)/2. All matrix entries are unique numbers from 1 to N². If the matrix is a magic square, register RO will be set (i.e. all ones) upon completion; otherwise it will be cleared. Test the following matrix: 16 5 9 4 3 10 6 15 2 11 7 14 13 8 12 1 Store the matrix element numbers in memory starting at location Ox20004000. Assume all numbers are Bytes. Show transcribed image text Total points towards grade: 5/100 Homework is submitted electronically on the Canvas. E-mail submissions will not be accepted. Assembly code must be submitted in text format. Add comments inside your code explaining the purpose of each instruction (where applicable). Code without comments will not earn credit. Assume that you are working with ARM Cortex-M3/M4 processor. Use Keil uVision to test your assembly program. Homework: 5 points Write an ARM assembly program to check whether an Nx N matrix is a magic square. A magic square is an Nx N matrix in which the sums of all rows, columns, and the two diagonals add up to N(N+ 1)/2. All matrix entries are unique numbers from 1 to N². If the matrix is a magic square, register RO will be set (i.e. all ones) upon completion; otherwise it will be cleared. Test the following matrix: 16 5 9 4 3 10 6 15 2 11 7 14 13 8 12 1 Store the matrix element numbers in memory starting at location Ox20004000. Assume all numbers are Bytes.

## Expert Answer

Answer to Total points towards grade: 5/100 Homework is submitted electronically on the Canvas. E-mail submissions will not be acc…