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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started