求语句解析:
ORG 000H
LJMP MAIN
ORG 0030H
MAIN:MOV SP,#60H
LOP:MOV A,#7FH
LOOP:MOV P1,A
MOV R7,#08H;重点求解
LCALL DELAY
RR A
DJNZ R7,LOOP;重点求解
MOV A,#0FEH
LOOP1:MOV P1,A
MOV R7,#08H
LCALL DELAY
RL A
DJNZ R7,LOOP1
SJMP LOP
DELAY:MOV R5,#10;重点求解对象,特别是延时程序时间的算法
DELAY1:MOV R6,#200
DELAY2:MOV R7,#123
DELAY3:DJNZ R7,DELAY3
DJNZ R6,DELAY2
DJNZ R5,DELAY1
RET
END |