Question: 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

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, the length of the array. the subroutine will copy the elements from the location LIST_IN to the location LIST_OUT. while copying, if an element occurs more than once (repeated), then repeated copies are ignored. In essence, the subroutine eliminates the replicated element from LIST_IN and places the result in LIST_OUT. Note that you need to update number m (the first element on the top) which is the actual number of elements in LIST_OUT after eliminating replicates

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!