ORG 0000H //汇编伪指令 表示后边紧跟的那条指令地址为0000H
L0: AJMP L7 //无条件跳转例如AJMP MAIN
DB FFH
L1: LJMP L89
DB FFH,FFH,FFH,FFH,FFH
L2: LJMP L91
DB FFH,FFH,FFH,FFH,FFH
L3: MOV R7,A
MOV R7,A
MOV R7,A
MOV R7,A
MOV R7,A
MOV R7,A
MOV R7,A
MOV R7,A
L4: MOV R7,A
MOV R7,A
MOV R7,A
MOV R7,A
MOV R7,A
MOV R7,A
MOV R7,A
MOV R7,A
L5: AJMP L90
DB 94H,FFH,FFH,FFH,FFH,FFH
L6: MOV R7,A
MOV R7,A
MOV R7,A
MOV R7,A
MOV R7,A
MOV FFH,#00H
MOV PSW,#00H
MOV R0,#40H
MOV R7,#A0H
MOV SP,#30H
ACALL L75
MOV IE,#00H
MOV E8H,#00H
ACALL L76
ACALL L77
ACALL L78
MOV FEH,#00H
MOV FCH,#FFH
MOV FDH,#FFH
ACALL L76
MOV TMOD,#21H
MOV TL1,#F3H
MOV TH1,#F3H
CLR ET1
SETB TR1
MOV SCON,#50H
MOV TL0,#78H
MOV TH0,#ECH
SETB PT0
SETB TR0
MOV IE,#82H
ACALL L79
MOV R0,#C4H
MOV 5AH,@R0
INC R0
MOV 5BH,@R0
INC R0
MOV 5CH,@R0
MOV R0,#18H
MOV R7,#18H
ACALL L75
MOV 29H,#3FH
MOV R0,#E0H
MOV @R0,#00H
MOV 18H,#B0H
MOV R0,#AEH
MOV @R0,#26H
INC R0
MOV @R0,#26H
MOV R0,#D6H
MOV @R0,#0DH
INC R0
MOV @R0,#0DH
MOV A,C4H
ANL A,#10H
MOV 26H,A
MOV 27H,26H
MOV A,C0H
ANL A,#80H
MOV 2EH,A
MOV 2FH,2EH
MOV A,C0H
ANL A,#40H
MOV 2CH,A
MOV 2DH,2CH
MOV 24H,#3FH
MOV 25H,#3FH
MOV 3FH,#00H
MOV 3EH,#00H
MOV A,4EH
CPL A
MOV FCH,A
JNB 03H,L80
CLR 03H
MOV R1,#CAH
MOV R7,#04H
ACALL L81
ACALL L82
ACALL L77
ACALL L83
MOV R1,#B9H
MOV R0,#D4H
MOV A,@R1
MOV @R0,A
MOV R1,#BAH
MOV R0,#D5H
MOV A,@R1
MOV @R0,A
L80: JNB 00H,L84
CLR 00H
ACALL L85
L84: MOV A,C4H
JNB ACC.5,L86
JNB ACC.6,L87
JNB ACC.7,L88
MOV A,C0H
ANL A,#3FH
MOV 25H,A
MOV R0,#C7H
L7: MOV IE,#00H
MOV SP,#30H
MOV R7,#3FH
MOV A,#00H
MOV R0,#40H
L8: MOV @R0,A
INC R0
DJNZ R7,L8
L9: DJNZ R7,L9
MOV SCON,#B0H
ORL 87H,#00H
MOV TMOD,#15H
MOV TL0,#00H
MOV TH0,#00H
SETB TR0
CLR ET0
SETB ES
SETB EA
CLR RI
CLR P2.1
L10: SJMP L10
L90: CLR RI
END
本人汇编大菜,从来没用过,因为有些东西大家也不好讲,说个大概就好,谢谢 |