Question: [10 1) Write an MSP430 assembly language subroutine, REP_FREE, to examine the elements of a list of positive word-size numbers stored at location LIST_IN. The

[10 1) Write an MSP430 assembly language subroutine, REP_FREE, to examine the elements of a list of positive word-size numbers stored at location LIST_IN. The list is already sorted in an ascending order. The first element is the number, n, which is the length of the array. The subroutine will copy the elements from location LIST_IN to location LIST_OUT. While copying, if an element occurs more than once (repeated), then the repeated copies are ignored. In essence, the subroutine eliminates the replicated elements from LIST_IN and places the results in LIST OUT. Note that you need to update number m (the first element on the top m) which is the actual number of elements in LIST_OUT after eliminating all replicates (Note: mn). Note: you may lose points for inefficient programming style. LIST Nn LIST OUTm [10 1) Write an MSP430 assembly language subroutine, REP_FREE, to examine the elements of a list of positive word-size numbers stored at location LIST_IN. The list is already sorted in an ascending order. The first element is the number, n, which is the length of the array. The subroutine will copy the elements from location LIST_IN to location LIST_OUT. While copying, if an element occurs more than once (repeated), then the repeated copies are ignored. In essence, the subroutine eliminates the replicated elements from LIST_IN and places the results in LIST OUT. Note that you need to update number m (the first element on the top m) which is the actual number of elements in LIST_OUT after eliminating all replicates (Note: mn). Note: you may lose points for inefficient programming style. LIST Nn LIST OUTm
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
