Here are the fixes to be made:
movia r99,10000000 /* set starting point for delay counter */
bge r6,r5,amin /* test for end of array */
stwio r3,0(r4) /* Write to the red LEDs /
addi r2,r2,1 /* increment address */
The comment on the first line above is not terminated by */,
thus the assembler considers the whole second line as part of the
comment of the first line. Fix this problem by properly terminating
the comment then run the program to verify that it is working
correctly. Hint: Use single-line comments to avoid this problem.