有不用c语言的不,就像这种的 ,急用 ,谢谢大佬ORG 0000H
AJMP MAIN
ORG 0023H
AJMP A1
ORG 0030H
MAIN: MOV SCON,#40H
MOV TMOD,#20H
MOV TH1,#0EEH
MOV TL1,#0EEH
SETB TR1
MOV PCON,#00H
SETB ES
SETB EA
MOV A,#00001111B
d1:
MOV SBUF,A
MOV P1,A
LJMP $
A1:
PUSH ACC
PUSH PSW
CLR TI
MOV SBUF,A
LCALL DE
POP PSW
POP ACC
RETI
DE:
MOV R4,#0FFH
AA1:MOV R5,#0FFH
AA:NOP
NOP
DJNZ R5,AA
DJNZ R4,AA1
RET
END |