Question: Please code the following in . asm ( x 8 6 bits ) and make sure it runs properly Design: The objective of this assignment
Please code the following in asm x bits and make sure it runs properly
Design:
The objective of this assignment is to create a program that will read a value from an array, and then
place this value in another array with the location shifted by a certain amount. The array may be of any
length. Your program must be flexible enough to produce the correct solution regardless of the array size.
You have to provide documentation for your program in the form of comments.
Points Create a BYTE array with the label inputinput should have eight elements. You should
place values in each of the elements of this array.
Points Create a BYTE array with the label output This array should be the same length as
input
Points Create a DWORD variable with the label shiftshift should hold a single value. The
value of shift must be less than the length of input
Points The program should then read each of the values from the array input and place the values
into the output array but the location should be shifted by the amount in the shift variable. If the shift
would cause a value to be outside of the bounds of output then the values should wrap around to the
front of output
Example:
My input array is AC
shift is
The proper solution for output is CA
As you can see the value is the st value in the input array. The value then shifts to the th value
in the output array. Also, note that the value C is the rd value in the input array. After a shift of this would take the value C out of bounds for the output array it is the same length as the input array
The value C must wrap around to the front of the output array. This also holds true for and
Remember that your program must be flexible enough to handle an array of any length.
Just because you test it with an array of length does not mean that I will test it with an array of
length I could test with an array of length or or any number in between
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
