Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CDA3331C Intro to Microcomputers Lab Assignment Name: Grade: 120 120] 2) The program of this exercise deals with arrays of numbers and subroutines. Next page

image text in transcribed
CDA3331C Intro to Microcomputers Lab Assignment Name: Grade: 120 120] 2) The program of this exercise deals with arrays of numbers and subroutines. Next page is the program outlines. At the beginning of your program you will allocate empty storage for two original arrays and their sorted versions. For the overall program layout, use the program skeleton file (lab2-v38-A-skl) available on Canvas. [1612a) Complete this MSP430 assembly language program where the SORT section sets the R4/R5/R6 parameters, which are used by the COPY and SORT subroutines to copy and sort array ARY1. R4 holds the starting address of the array. RS holds the length of the array. R6 holds the starting location of the sorted array. CoPY subroutine copies the contents of array ARY into ARY1S. SORT subroutine sorts the elements on ARYIS in place SORT2 section is similar to SORTI above using same registers. Arrays are in decimal notation Sort Arrays in ascending order from lowest to highest value. Main Program: [6] for Program setup, and [10] for Sort Subroutine. Use the following values for the array elements. ARY1: 10, 29,16,-55,90,17,63,59,-35,27,55), ARY2: (10, 43,84,29,-59,-51,77,79,69,77,64) If the values in the skeleton code are different, use the values above. ] 2.b) Run your program and verify the results by using the Memory Brosser window in the CCS Debug view. (Hex Values in order) ARY1S: ARY2S: CDA3331C Intro to Microcomputers Lab Assignment Name: Grade: 120 120] 2) The program of this exercise deals with arrays of numbers and subroutines. Next page is the program outlines. At the beginning of your program you will allocate empty storage for two original arrays and their sorted versions. For the overall program layout, use the program skeleton file (lab2-v38-A-skl) available on Canvas. [1612a) Complete this MSP430 assembly language program where the SORT section sets the R4/R5/R6 parameters, which are used by the COPY and SORT subroutines to copy and sort array ARY1. R4 holds the starting address of the array. RS holds the length of the array. R6 holds the starting location of the sorted array. CoPY subroutine copies the contents of array ARY into ARY1S. SORT subroutine sorts the elements on ARYIS in place SORT2 section is similar to SORTI above using same registers. Arrays are in decimal notation Sort Arrays in ascending order from lowest to highest value. Main Program: [6] for Program setup, and [10] for Sort Subroutine. Use the following values for the array elements. ARY1: 10, 29,16,-55,90,17,63,59,-35,27,55), ARY2: (10, 43,84,29,-59,-51,77,79,69,77,64) If the values in the skeleton code are different, use the values above. ] 2.b) Run your program and verify the results by using the Memory Brosser window in the CCS Debug view. (Hex Values in order) ARY1S: ARY2S

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

Probabilistic Databases

Authors: Dan Suciu, Dan Olteanu, Christopher Re, Christoph Koch

1st Edition

3031007514, 978-3031007514

More Books

Students also viewed these Databases questions

Question

What are the major tasks involved in managing export transactions?

Answered: 1 week ago