Question: Please create this program This lab will help you implement Assembly Language sub The program of this exercise deals with arrays of numbers. The program
This lab will help you implement Assembly Language sub The program of this exercise deals with arrays of numbers. The program defines some random lists of numbers and allocates empty storage for sorted arrays; then it sorts the lists. The overall program structure should be as follows -routine using 680x0 microprocessors : WSU-EECS-CS594L SIZEI EQU ;array size ORG SOA00 Program starts here START LEA $7000,A7 set SP (USP) for subroutine ; Set parameters to ascending sort Array 1; then call SORT subroutine SORT1 BSR SORT ;ascending sort Array 1 Set parameters to ascending sort Array 2; then call SORT subroutine SORT2 BSR SORT ;ascending sort Array 2 TRAP DC.W #15 0 call system function 0 (exit program) ;Sort subroutine SORT MOVE.B DO,D2 set loop counter D2 (Size 1) RTS Data section Aryl Aryls ORG DC.B ORG DS.B SAA0 5,4,2,3,1 Array 1 (before/after sorting) SAA8 Array 1 sorted 1,2,3,4,5 (after)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
