Question: PLEASE ONLY USE EASY68K ASSEMBLY LANGUAGE FOR THE FOLLOWING PROGRAM: . . Please write an assembly language program to accept an array of size 10,

PLEASE ONLY USE EASY68K ASSEMBLY LANGUAGE FOR THE FOLLOWING PROGRAM:

.

.

Please write an assembly language program to accept an array of size 10, display odd or even numbers, and sort the array in increasing order. You need to use 3 subroutines (branch) to finish this question. The functionalities of each subroutine are described below:

.

- In the first subroutine, read an array from the keyboard and store it. Next, accept an input from the user, if the input is either 1 or 2, call the next subroutine and terminate this subroutine. 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.

- In the second subroutine, display all odd numbers in the array if the accepted input is 1; display all even numbers in the array if it is 2.

- In the third subroutine, please sort all the elements in the array in increasing order and display the array.

.

Please paste your code and the screenshots of displayed result and memory.

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!