Prepare the code for the given program:
Program: Write a program to compute the average of an array of N 8-bit numbers and store the result at $1000. The array is stored at memory locations starting from $1010. N is no larger than 255.
I can't seem to get this to work for some reason could anybody evaluate the average of an array?