Question: Consider an array of numbers A(i,j), where i = 0 through n-1 is the row index and j = 0 through m-1 is the column

Consider an array of numbers A(i,j), where i = 0 through n-1 is the row index and j = 0 through m-1 is the column index. The array is stored in the memory of a IA-32 computer one row after another, with elements of each row occupying m successive doubleword locations. Write an IA-32 subroutine for adding column x to column y, element by element, leaving the sum elements in column y. The indices x and y are passed to the subroutine in registers ESI and EDI. The parameters n and m are passed to the subroutine in registers EAX and EBX, and the address of element A(0,0) is passed in register EDX. Any of the addressing modes in Table 3.3 can be used.

Step by Step Solution

3.37 Rating (150 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Organization Development Questions!