Question: don't copy this answer because it's incorrect! the function name SHOULD BE sumArrayAbove10 I will dislike if you copy the same answer I will post
don't copy this answer because it's incorrect! the function name SHOULD BE sumArrayAbove10 I will dislike if you copy the same answer I will post the wrong answer and the question
USE

this first photo is the wrong answer I Don't need it solve the question as they asked in the second photo
USE ASSEMBLY
{ Answer 1 of 1 .data array SDWORD N DUP(-10,-8,-6,-4,-2,-1,1,3,5,7) j DWORD ? k DWORD ? .code main PROC call clrscr mov j, 0 mov k, 10 mov ESI, OFFSET array mov ECX, N call SummingArrayElementsInRange call WriteInt call crlf mov j, -10 mov k, 0 mov ESI, OFFSET array mov ECX, N. call SummingArrayElementsInRange call WriteInt call crlf call WaitMsg exit main ENDP SummingArrayElementsInRange PROC push ecx push esi moveax, O 11: mov ebx, [esi] cmp ebx, j jge true1 jmp next true1: cmp ebx, k jle true2 jmp next true2: add eax, ebx next: add esi, 4 loop 11 a Write a function named sumArrayAbove 10 that takes a pointer PArray to an array of DWORD and an integer array Size of type DWORD. Then sum all values of the array above 10 and return the sum as a third parameter
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
