增加了一次右移 然后R3少减少了一次 现在就一样了
不知道8楼说的清除P0显示,如何操作
ORG 0000H
START:MOV R2,#08H
MOV R3,#06H
MOV A,#01H
NEXT: MOV P0,A
ACALL DELAY
RL A
DJNZ R2,NEXT
RR A
NEXT1:
RR A
MOV P0,A
ACALL DELAY
DJNZ R3, NEXT1
AJMP START
DELAY: MOV R5,#0FFH
D1: MOV R6,#0FFH
D2: MOV R7,#02H
D3: DJNZ R7,D3
DJNZ R6,D2
DJNZ R5,D1
RET
END