Question: Create a procedure using assembly named FindSum that receives two parameters: a pointer to a signed doubleword array, and a count of the arrays length.
- Create a procedure using assembly named FindSum that receives two parameters: a pointer to a signed doubleword array, and a count of the arrays length. The procedure must return the value of the sum of array elements array in EAX.
- Use the PROC directive with a parameter list when declaring the procedure. Preserve all registers (except EAX) that are modified by the procedure.
- Write a test program that calls FindSum and passes three different arrays of different lengths. Be sure to include negative values in your arrays.
- Create a PROTO declaration for FindSum.
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
