Question: Solve the following problems using the MSP430 IAR Compiler/Assembler . Develop a mixed-language program to perform the following calculations in assembly language subroutines: Addition Subtraction

Solve the following problems using the MSP430 IAR Compiler/Assembler.

Develop a mixed-language program to perform the following calculations in assembly language subroutines:

Addition

Subtraction

Product

Division (ratio + remainder)

The C portion of the program should declare the input and output variables, and confirm the results (i.e. compare with the equivalent results in C). For parts a, b, and c, your output variables should be of type long (32 bits in size), input variables should be of type int (16 bits in size). For part d all variables should be of type int. HINT: You will need to pass a pointer when calculating part c, because only a single return value is allowed.

Additional requirements:

- For the above problems that combine C and assembly, the input data should be declared in the C portion of the program.

- For the above problems that only use assembly language, the input data should be stored in RAM.

- Code needed to test each problem should be included.

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 Databases Questions!