Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

  1. 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Readings In Database Systems

Authors: Michael Stonebraker

2nd Edition

0934613656, 9780934613651

More Books

Students also viewed these Databases questions