@100 D=A @arr M=D @10 D=A @n M=D (LOOP) @arr A=M M=-1 @arr M=M+1 @n M=M-1 D=M @END D;JEQ @LOOP 0;JMP (END) @END 0;JMP