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
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 RRRR
;
This subroutine performs matrix multiplication:
MatrixC MatrixA MatrixB
Input parameters:
R: Address of first element of MatrixA
R: Address of first element of MatrixB
R: Address of first element of MatrixC
R: Number of Rows:Columns in MatrixA
R: 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:
R: Number of Rows:Columns in MatrixC
V bit in PSR: : multiply successful;
: otherwise
Modifies: R and PSR only
; Unspecified codealgorithm
;
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 boldsymbolP by matrix boldsymbolQ and to store the result in matrix boldsymbolF 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.
Describe the details of initializing UART to generate interrupt requests, as used in lab. Be sure to describe all control register bits that must be set andor cleared to enable interrupts and why each bitfield must have the value that you indicate. Omit details of any UART initialization not specifically associated with enabling the interrupts used in lab.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
