Question
Write an 80x86 assembly language program in a file that will add together a number of words stored consecutively in memory. The end of input
Write an 80x86 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started