Question: Solve the following problems using assembly language and the MSP430 IAR Assembler 1. For a 20-character string, write a macro to change all instances of

Solve the following problems using assembly language and the MSP430 IAR Assembler 1. For a 20-character string, write a macro to change all instances of a given 2- character sub-string to a different 2-character sub-string 2. Write a subroutine that will find the minimum, maximum and average of an 11 element integer array. 3. Write a subroutine to calculate the factorial of an integer. Use up to 32-bits to express the result. 4. Write a subroutine to multiply two 3-by-3 matrices. Additional requirements: The input data for the above problems should be stored in RAM. Code needed to test the subroutines and macros should be included. At least 3 addressing modes should be used. Use remarks on the code to identify them Solve the following problems using assembly language and the MSP430 IAR Assembler 1. For a 20-character string, write a macro to change all instances of a given 2- character sub-string to a different 2-character sub-string 2. Write a subroutine that will find the minimum, maximum and average of an 11 element integer array. 3. Write a subroutine to calculate the factorial of an integer. Use up to 32-bits to express the result. 4. Write a subroutine to multiply two 3-by-3 matrices. Additional requirements: The input data for the above problems should be stored in RAM. Code needed to test the subroutines and macros should be included. At least 3 addressing modes should be used. Use remarks on the code to identify them
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
