Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started