給上面的大大~
ORG 00H
LJMP START
ORG 03H
LJMP INT0
ORG 13H
LJMP INT1
START:
MOV SP,#60H
SETB IT0
SETB IT1
SETB EA
SETB EX0
SETB EX1
SETB PX0
LOOP:
JNB P1.1,LOOP
JNB P1.2,LOOP
CALL DK_1
JMP LOOP
DK_1:
CLR P0.0
MOV R7,#50
DJNZ R7,$
SETB P0.0
MOV R7,#20
DJNZ R7,$
CLR P0.0
RET
INT0:
ACALL DK_1
LJMP LOOP
INT1:
ACALL DK_1
LJMP LOOP
END
我有做了一些小改變~
煩請大大在幫我看一下~
|