Question: Write an assembly language program in a file that will add together a number of words stored consecutively in memory. The end of input from

Write an assembly language program in a file that will add together a number of words stored consecutively in memory. The end of input from memory should be terminated by a value of 0. For example, the data to be used could be entered something like the following:

summing dw 12, -29, 21, 17, -10, 00

The number of positive values, number of negative values, the total number of values summed and the resulting sum should be placed in memory by the program. These answers should not overwrite the original data. (This means you create variables in your data segment to store the results.)

The input values and the total sum should be word values. The counters for positive values, negative values and total number of values should be byte values. Use registers as much as possible for computation and storing (since they are faster than going to memory). Comment your code appropriately.

Step by Step Solution

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 Databases Questions!