The following program uses indirect addressing to reverse the elements of an integer array in place without copying the elements to any other array as required by you.
main PROC:
MOV SI , 0500H MOV DI , 0505H MOV CH, 03H MOV AL , [SI] : L1 MOV BL , [DI] MOV [DI] , AL MOV [SI] , BL INC SI DEC DI DEC CH JNZ L1 HLT
Write the memory location of the 4th statement in place of L1 at the second last command. You can add other statements too to make it more flexible but do not remove 4th-10th statements just edit if required.
I hope it helps :)
TITle Addition of two lists ; Proj1.asm ; This program add elements of two lists separately, disp...
what's the solution for the c++ project?
PART1 Answer the following question in a Word document named as SP2019LAB7 PART1 YourlastName.docx Question1: What is the output of the following program? #include <iostream> using namespace std; int main() int count; int alpha(51: alpha[0] -4; for (count 1; count <5; count++) alpha[count] = 4 * count + 1 alpha(count 1] alpha[counk] -8; LAB7 cout << List elements: "; for (count = 0; count < 5; count++) cout <s alphalcount]<<"" cout<s endl; return...