Question: 1 . For the subroutine specified below, write an assembly language code fragment to use the subroutine: set the input parameters for the subroutine, call

1. For the subroutine specified below, write an assembly language code fragment to use the subroutine: set the input parameters for the subroutine, call the subroutine, and retrieve the return parameters. Note: Do not write the subroutine.
```
MatrixMult PROC {R0-R4,R6-R14}
;*****************************************************
This subroutine performs matrix multiplication:
MatrixC = MatrixA * MatrixB
Input parameters:
R0: Address of first element of MatrixA
R1: Address of first element of MatrixB
R2: Address of first element of MatrixC
R3: Number of Rows:Columns in MatrixA
R4: Number of Rows:Columns in MatrixB
(Row:Columns means the most significant
halfword contains the number of rows, and the
least significant halfword contains the
number of columns)
Output parameters:
R5: Number of Rows:Columns in MatrixC
V (bit in PSR): 0: multiply successful;
1: otherwise
Modifies: R5 and PSR (only)
*******************************************************
; ... Unspecified code/algorithm
;*******************************************************
BX LR ;return
ENDP
```
The code fragment should use the labels from the variable definitions and equates that follow. It should use MatrixMult to compute the multiplication of matrix \(\boldsymbol{P}\) by matrix \(\boldsymbol{Q}\), and to store the result in matrix \(\boldsymbol{F}\). On return from MatrixMult, the code fragment should call subroutine Error if and only if the matrix multiplcation operation was unsuccessful. (Note: Do not write the subroutines MatrixMult and Error; write only a code fragment to use them properly.)
2. Describe the details of initializing UART0 to generate interrupt requests, as used in lab. Be sure to describe all control register bits that must be set and/or cleared to enable interrupts and why each bit/field must have the value that you indicate. (Omit details of any UART0 initialization not specifically associated with enabling the interrupts used in lab.)
1 . For the subroutine specified below, write an

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!