Question: Please done in the free program Easy68k (Assembly Language). No C++ and dont repost other codes from here they arent right. Please reserve a block

Please done in the free program Easy68k (Assembly Language). No C++ and dont repost other codes from here they arent right.  Please done in the free program Easy68k (Assembly Language). No C++

Please reserve a block memory of 10 word size elements and do the following operations. You need to use subroutine (branch) to finish this question. Please resolve all the questions in one main routine. (7) 1) In the first subroutine. First, read an array [5, 7, 12, 3, 8, 21, 1, 12, 2, 16] from the keyboard and store it at the reserved space. Second, please input a decimal number from keyboard. If the number that you enter is either 1 or 2, terminate the subroutine and back to the main routine. If the input value is any other number, please print out an error message, like "Invalid input, please input 1 or 2" and repeat this input operation until a correct value is received. (2) 2) In the second subroutine, please display all odd numbers in the array if the number that you enter is 1; display all even numbers in the array if it is 2. (2) 3) In the third subroutine, please sort all the odd or evern elements which are selected in the second subroutine, then have them sorted in ascending order and displayed. (3)

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!