Question: Consider the following 0x86 program: .data array DWORD 1,2,3,4,5,6,7,8,9 aravSize -(S-array)/4 ; array .code main PROC mov ecx,arraySize-1 mov esi.OFFSET array L1: mov eax.

Consider the following 0x86 program: .data array DWORD 1,2,3,4,5,6,7,8,9 aravSize -(S-array)/4 ;

Consider the following 0x86 program: .data array DWORD 1,2,3,4,5,6,7,8,9 aravSize -(S-array)/4 ; array .code main PROC mov ecx,arraySize-1 mov esi.OFFSET array L1: mov eax. [esi] sda mov bx,2 idiv bx add esi,4 smp edx,0 je lbl jmp, next Ibl: mov eax.[esi] shr eax,1 mov [esi],eax next: loop L1 exit main ENDP END main What is the content of the array at the end of the program? a) 1,1,3,2,5,3,7,4,9 b) 0,1,1,2,2,3,3,4,4 c) 1,2,1,4,2,3,7,8,4 d) 0,2,1,4,2,6,3,8,4

Step by Step Solution

3.41 Rating (145 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Answer First of all you can simplify your code Copy Code reverseLoop mov eax esi move the element in esi to eax mov ebx edi move the element in edi to ... View full answer

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!

Related Book