Find the Output of the below Code (ASSEMBLY LANGUAGE) N is equal to 10 and j and k are uninitialized DWORD variables and array is SDWORD array with size n and initial values equal to...


Find the Output of the below Code (ASSEMBLY LANGUAGE)<br>N is equal to 10 and j and k are uninitialized DWORD variables and array is SDWORD<br>array with size n and initial values equal to<br>(-10,-8,-6,-4,-2,-1,1,3,5,7)<br>call Clrscr<br>mov j, e<br>mov k, 10<br>mov EŠI, OFFSET array<br>mov ECX, N<br>call Procedurel<br>call WriteInt<br>call crlf<br>mov j, -10<br>mov k, e<br>mov ESI, OFFSET array<br>mov ECX, N<br>call Procedurel<br>call WriteInt<br>call crlf<br>call WaitMsg<br>exit<br>main ENDP<br>Procedurel PROC<br>push ecx<br>push esi<br>mov eax, 0<br>l1:<br>mov ebx, [esi)<br>спр еbx, j<br>jge truel<br>jmp next<br>truel:<br>cmp ebx, k<br>jle true2<br>jmp next<br>true2:<br>add eax, ebx<br>next:<br>add esi, 4<br>loop l1<br>pop esi<br>pop есx<br>ret<br>Procedurel ENDP<br>

Extracted text: Find the Output of the below Code (ASSEMBLY LANGUAGE) N is equal to 10 and j and k are uninitialized DWORD variables and array is SDWORD array with size n and initial values equal to (-10,-8,-6,-4,-2,-1,1,3,5,7) call Clrscr mov j, e mov k, 10 mov EŠI, OFFSET array mov ECX, N call Procedurel call WriteInt call crlf mov j, -10 mov k, e mov ESI, OFFSET array mov ECX, N call Procedurel call WriteInt call crlf call WaitMsg exit main ENDP Procedurel PROC push ecx push esi mov eax, 0 l1: mov ebx, [esi) спр еbx, j jge truel jmp next truel: cmp ebx, k jle true2 jmp next true2: add eax, ebx next: add esi, 4 loop l1 pop esi pop есx ret Procedurel ENDP

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here