1. Create a 6800 program which sums the modulo (remainder) of all elements in a (zero terminated) array with an input number n:

n .byte $7

myArray .byte 2,9,7,2,3,5,0

So this will compute:


7 mod 2 + 7 mod 9 + 7 mod 7 + 7 mod 2 + 7 mod 3 + 7 mod 5

After your program executes, the output (which has an initial value of zero) should be stored in a variable called output:

output .byte 0