诚实守信!
分类:
2009-03-29 13:15:12
|
ORG 0100H
LOOP0: MOV A, #0FEH
MOV R2, #8; 用于计数
LOOP1: MOV P1, A
LCALL DEL200
RL A
DJNZ R2, LOOP1
MOV A, #7FH
MOV R2, #8
LOOP2: MOV P1, A
LCALL DEL200
RR A
DJNZ R2, LOOP2
LCALL LOOP0; 返回LOOP0
DEL200: MOV R7, #200
DEL1: MOV R6, #250
DJNZ R6, $
DJNZ R7, DEL1
RET
END