Question: Reverse Array Copy Write an assembly program that declares two arrays as follows: array1 SDWORD 10,20,30,40,50,60,70,80 array2 SDWORD LENGTHOF array1 DUP(?) The program should copy

Reverse Array Copy Write an assembly program that declares two arrays as follows: array1 SDWORD 10,20,30,40,50,60,70,80 array2 SDWORD LENGTHOF array1 DUP(?) The program should copy all the values in array1 to array2 in reverse order. For the values given above, the resulting values in array2 should be 80, 70, 60, 50, 40, 30, 20, and 10, in that order. The program should be written such that no modifications to the code segment would be necessary if the initialization values in array1 or the number of initialization values has changed. In other words, the code should continue to work unmodified for any number of initialization values or array1. Be sure to test your program using the debugger to ensure it works, and test your program multiple times with different numbers of initialization values for array1. When you turn in your assembly program, the exact initialization values and number of values included for array1 is not important.

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!