Question: Question 2 2 After the program completes the array newValue should be the reverse of oldValue. E . g . if the values in oldValue

Question 22
After the program completes the array "newValue" should be the reverse of "oldValue". E.g. if the values in "oldValue" are 1,2,3,4,5 then after the program completes the values in "newValue" should be 5,4,3,2,1. This program should be flexible enough to handle arrays with 2 to 100 elements.
DATA
oldValue DWORD 1,2,3,4,5
newValue DWORD LENGTHOF oldValue DUP(?)
CODE
main PROC
1_
O:
2
LOOP O
-3_
N :
q,
LOOP N
INVOKE ExitProcess, 0
main ENDP
END main
Which line of code should be in blank 2?
MOV newValue[(ECX *2)-2], oldValue[(ECX *2)-2]
ADD oldValue[ECX], newValue[ECX]
MOV newValue[ECX], oldValue[ECX]
PUSH oldValue[(ECX *4)-4]
MOV newValue[(ECX *2)-2]
Question 2 2 After the program completes the

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 Programming Questions!