MOVLW 0x0a
MOVWF _cn1
MOVLW 0x14
MOVWF _cn2
_00114_DS_:
MOVF _cn1,W
BTFSS STATUS,2
GOTO _00108_DS_
_00111_DS_:
MOVF _cn2,W
BTFSS STATUS,2
GOTO _00115_DS_
DECF _cn2,F
GOTO _00111_DS_
_00115_DS_:
DECF _cn1,F
GOTO _00114_DS_
/* c d代码 * /
volatile unsigned char cn1=0,cn2=0;
#define delay(A,B) {cn1=(A);cn2=(B);for(;cn1==0;cn1--) for(;cn2==0;cn2--);}
void main (void)
{
delay(10,20);
while(1);
}
|