Question: Write a short assembly program that computes the average of the numbers { 2 , - 6 1 , 1 7 , 1 9 }

Write a short assembly program that computes the average of the numbers {2,-61,17,19}. In particular Create a byte array in RAM that is initialized with the values {2,-61,17,19} Create two byte-sized variables in RAM named sum and avg Add up all the numbers in the array and store the result in sum Use indexed mode when accessing array elements Find the average of the numbers in the array and store the result in avg

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