Question: 1. Write a program in Easy68K *assembly language* to fulfill the following functions: . . -Read two numbers from keyboard, one for index , one
1. Write a program in Easy68K *assembly language* to fulfill the following functions:
.
.
-Read two numbers from keyboard, one for index, one for the size of the array; Please prompt the user when you are accepting inputs. (10 pts.)
.
-Display the (index % size)th number in the initialized array [2 3 8 1 6 5 4]. (45 pts.)
.
Example:
Input the size of the array: 7
Input the index to display: 25
(then 25%7=4, display 4th number in the array, which is 1)
The value is: 1
.
Note: Please only use Easy68k Assembly language to answer this question. Also please keep the program as simple as possible as I am only a beginner. I will rate your answer, thank you!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
