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 In particular Create a byte array in RAM that is initialized with the values Create two bytesized 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
