Use a loop with indirect or indexed addressing to reverse the elements of an integer array in place and display the modified array (calling the DumpMem method from the Irvine32 library). Do not copy the elements to any other array. Use the SIZEOF, TYPE, and LENGTHOF operators to make the program as flexible as possible if the array size and type should be changed in the future.
.code main proc mov esi, OFFSET array ; mov edi, SIZEOF array - TYPE array ; mov ecx, LENGTHOF array / 2 ;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)