2.1 [20 pts] Write an MSP430 assembly subroutine bubbleSort thatimplements the same using R12 and
R13 as registers for source and destination addresses and R4 as thenumber of words to be sorted.
2.2 [5 pts] Modify bubbleSort to create a subroutine median thatimplements the median of N words
(for simplicity, assume N is odd), R14 should contain the outputvalue.
Expert Answer
An answer will be send to you shortly. . . . .