Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Demystifying Databases A Hands On Guide For Database Management

Authors: Shiva Sukula

1st Edition

8170005345, 978-8170005346

More Books

Students also viewed these Databases questions

Question

orderliness, patience and seeing a task through;

Answered: 1 week ago