The objective of this assignment is to create a program thatwill read a value from an array, and then place this value inanother array with the location shifted by a certain amount. Thearray may be of any length from 2 to 100. Your program must beflexible enough to produce the correct solution regardless of thearray size. You have to provide documentation for your program inthe form of comments.
(10 Points) Create a BYTE array with the label ‘input’. ‘input’should have eight elements. You should place values 1,2,3,4,5,6,7,8in each of the elements of this array.
(10 Points) Create a BYTE array with the label ‘output’. Thisarray should be the same length as ‘input’.
(10 Points) Create a DWORD variable with the label ‘shift’.‘shift’ should hold a single value. The value of ‘shift’ must beless than the length of ‘input’.
( 50 Points) The program should then read each of the valuesfrom the array ‘input’ and place the values into the ‘output’ arraybut the location should be shifted by the amount in the ‘shift’variable. If the shift would cause a value to be outside of thebounds of ‘output’, then the values should “wrap around” to thefront of ‘output’.
.386
.model flat, stdcall
.stack 4096
ExitProcess proto, dwExitCode:dword
.data
shift dword 3
input byte 5,0ah,3,6,och
output byte lengthofinput dup(?)
.code
main proc
11:
loop 11
12:
loop 12
invoke ExitProcess,0
main endP
end main
Expert Answer
Answer to The objective of this assignment is to create a program that will read a value from an array, and then place this value …