MINDAT: MOV R0,#30H MOV R2,#10 MOV 40H,#0FFHLOOP: MOV A,@R0 CJNE A,40H,LOOP1LOOP1: JNC LOOP2 MOV 40H,ALOOP2: INC R0 DJNZ R2,LOOP RET