Question: Use the following code as a starting point Create a procedure that uses indirect addressing to calculate the sum of the all the elements of
Use the following code as a starting point
Create a procedure that uses indirect addressing to calculate the sum of the all the elements of the array
INCLUDE Irvineinc
INCLUDE macros.inc
data
array WORD
array WORD
code
main PROC
mov ecx, lengthof array
mov esi, offset array
call sum
call WriteDec
call CRLF
mov ecx, lengthof array
mov esi, offset array
call sum
call WriteDec
call CRLF
exit
main ENDP
; DescriptionLsum up a word array
; Receives:ECX: size ESI: address
; Returns: EAX: sum
; Requirees : na
sum PROCUSES ECX Question Blank of
mov EAX, Question Blank of
Question Blank of :
Question Blank of Question Blank of Question Blank of ESIQuestion Blank of
addQuestion Blank of TYPE Question Blank of
Question Blank of TOP
ret
sum ENDP
END main
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
