文本显示器汇编源代码程序
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
IAP_RUN EQU 0FF81H
PGM_MTP EQU 0FFF0H
AUXR1 equ 0xA2
ORG 0000H
LJMP L0DB8H
L0003H: /*外部中断0 通讯中断入口地址*/
LJMP L0A49H
L0006H:
RET
DB 02H
L0008H:
RET
LJMP L0202H /*产生复位*/
XRL A, #00H
L000EH:
MOV R2, #06H
MOV R3, #3AH
CLR 09H
CLR 0AH
LCALL L08A3H
RET
L001AH:
LCALL L083AH
RET
L001EH:
DB 75H, 0A0H
L0020H:
MOV R7, A
RET
LJMP L0260H
NOP
L0026H:
MOV 22H, #10H
MOV 23H, #00H
CLR A
MOV R7, A
MOV DPTR, #7FFEH /* 判断此值 如为0x5A 则显示no data pls down*/
MOVC A, @A+DPTR
XRL A, #5AH /*原 XRL A, #5AH */
JZ L0038H
CLR C
RET
L0038H:
MOV R5, #00H
MOV R4, #70H
L003CH:
SETB C
MOV A, R5
SUBB A, #00H
MOV A, R4
SUBB A, #00H
JC L005FH
INC 23H
MOV A, 23H
MOV R2, 22H
JNZ L004FH
INC 22H
L004FH:
DEC A
MOV DPL, A
MOV DPH, R2
CLR A
MOVC A, @A+DPTR
ADD A, R7
MOV R7, A
MOV A, R5
DEC R5
JNZ L005DH
DEC R4
L005DH:
SJMP L003CH
L005FH:
MOV A, R7
JNZ L0065H
SETB C
SJMP L0066H
L0065H:
CLR C
L0066H:
RET
/*..................*/
L0067H:
MOV 26H, R7
MOV 27H, R5
MOV 28H, R2
MOV 29H, R3
CLR A /*液晶刷新*/
MOV 2BH, A
L0072H:
MOV A, 2BH
CLR C
SUBB A, 2AH
JNC L009DH
MOV R7, 26H
MOV R5, 27H
MOV R3, 29H
MOV R2, 28H
CLR 09H
CLR 0AH
LCALL L08A3H
MOV A, #10H
ADD A, 29H
MOV 29H, A
CLR A
ADDC A, 28H
MOV 28H, A
MOV A, #08H
ADD A, 26H
MOV 26H, A
INC 2BH
SJMP L0072H
L009DH:
RET
/*........................*/
L009EH:
MOV 26H, R7
MOV 27H, R5
MOV 28H, R3
MOV A, 28H
ANL A, #0F0H
JZ L00C9H
MOV A, 28H
SWAP A
ANL A, #0FH
ANL A, #0FH
MOV B, #10H
MUL AB
ADD A, #3AH
MOV DPL, A
MOV A, B
ADDC A, #05H
MOV R3, DPL
MOV R2, A
CLR 09H
CLR 0AH
MOV R7, 26H
LCALL
L08A3H
L00C9H:
MOV A, 26H
ADD A, #08H
MOV R7, A
MOV A, R7
PUSH ACC
MOV R5, 27H
MOV A, 28H
ANL A, #0FH
MOV B, #10H
MUL AB
ADD A, #3AH
MOV DPL, A
MOV A, B
ADDC A, #05H
MOV R3, DPL
MOV R2, A
CLR 09H
CLR 0AH
POP ACC
MOV R7, A
LCALL L08A3H
RET
L00F1H:
SETB 0BH
MOV 39H, R5
LCALL L087BH
RET
L00F9H:
MOV R7, #3FH
LCALL L09DBH
RET
LJMP LFFFFH
MOV R7, A
MOV R7, A
MOV R7, A
MOV R7, A
MOV R7, A
MOV R7, A
MOV R7, A
MOV R7, A
MOV R7, A
L010BH:
LCALL L0D07H
MOV 22H, R7
MOV A, 22H
ANL A, #7FH
JZ L0119H
LCALL L0BF5H
L0119H:
MOV R7, 22H
RET
L011CH:
LCALL L0D07H
MOV A, R7
ANL A, #7FH
JNZ L011CH
L0124H:
LCALL L010BH
MOV A, R7
JZ L0124H
RET
L012BH: /*初始化 */
LCALL L0A43H /*打开定时器0 */
LCALL L0A46H /*开外部中断 0 用于通讯快速响应*/
LCALL L0A40H /*关闭时钟 片选信号*/
LCALL L09C2H /*初始化液晶*/
LCALL L001EH
LCALL L0026H /* 判断在0x7FFF(0x5A)的值 是否为用户程序*/
MOV 00H, C /*识别标志位*/
LCALL L0A64H /*开所有中断*/
SETB 09H /*启动09标志位*/
LCALL L01F5H /*开启液晶背光*/
LCALL L0BF5H /* beep 上电响一次*/
LCALL L0CE3H /*识别 通讯中断 外部中断0 是否关闭 */
JNC L0152H
LCALL L04A2H
L0152H:
JB 00H, L0197H /*是否有用户数据 没有则显示 no data pls domn*/
MOV R7, #48H
MOV R5, #10H
MOV R2, #06H
MOV R3, #0BAH
MOV 2AH, #02H
LCALL L0067H /*显示 no*/
MOV R7, #60H
MOV R5, #10H
MOV R2, #07H
MOV R3, #1AH
MOV 2AH, #04H
LCALL L0067H /*显示 data*/
MOV R7, #48H
MOV R5, #28H
MOV R2, #06H
MOV R3, #8AH
MOV 2AH, #03H
LCALL L0067H /*显示pls*/
MOV R7, #68H
MOV R5, #28H
MOV R2, #06H
MOV R3, #0DAH
MOV 2AH, #04H
LCALL L0067H /*显示 down*/
L018DH:
LCALL L011CH
MOV R7, #64H
LCALL L0C2CH
SJMP L018DH
L0197H:
LCALL L1000H
RET
L019BH:
MOV 26H, R7
MOV 27H, R5
LCALL L0BEFH
CLR A
MOV 28H, A
L01A5H:
MOV A, 28H
CLR C
SUBB A, 27H
JNC L01EBH
CLR A
MOV 2AH, A
MOV 2BH, A
L01B1H:
LCALL L0BE9H
JC L01CBH
CLR C
MOV A, 2AH
XRL A, #80H
SUBB A, #80H
JNC L01C1H
CLR C
RET
L01C1H:
INC 2BH
MOV A, 2BH
JNZ L01C9H
INC 2AH
L01C9H:
SJMP L01B1H
L01CBH:
LCALL L0BEFH
MOV R7, #29H
LCALL L0B15H
JC L01D7H
CLR C
RET
L01D7H:
MOV A, 26H
ADD A, 28H
ADD A, #8EH
MOV DPL, A
CLR A
ADDC A, #00H
MOV DPH, A
MOV A, 29H
MOVX @DPTR, A
INC 28H
SJMP L01A5H
L01EBH:
SETB C
RET
L01EDH:
CLR 0BH
MOV 39H, R5
LCALL L087BH
RET
L01F5H: /*开启液晶背光*/
JNB 09H, L01FBH
SETB C
SJMP L01FCH
L01FBH:
CLR C
L01FCH:
MOV P3.3, C
RET
DB 02H
L0200H:
DB 02H, 02H
/*....................................*/
L0202H: /*产生复位*/
CLR ET0
CLR ES
CLR RS0
CLR RS1
MOV AUXR1, #00H
MOV A, #16H
DB 0C0H
L0210H:
MOVX A, @DPTR
MOV A, #02H
PUSH ACC
RETI
CLR A
PUSH ACC
PUSH ACC
RETI
/*...........................*/
L021CH: /*发送数据子程序*/
MOV 25H, R7
MOV 26H, R5
LCALL L0BF2H
CLR A
MOV 27H, A
L0226H:
MOV A, 27H /*已发送数据个数*/
CLR C
SUBB A, 26H /*总共发送数据个数*/
JNC L024BH
MOV A, 25H
ADD A, 27H
ADD A, #08H
MOV DPL, A
CLR A
ADDC A, #00H
MOV DPH, A
MOVX A, @DPTR
MOV R7, A
LCALL L0B90H
L023FH:
LCALL L0BECH
JNC L023FH
LCALL L0BF2H
INC 27H
SJMP L0226H
L024BH:
RET
L024CH:
CLR A
MOV R7, A
MOV R5, #01H
LCALL L019BH
JC L0257H
CLR C
RET
L0257H:
MOV DPTR, #008EH
MOVX A, @DPTR
MOV 24H, A
MOV R7, #01H
DB 7DH
L0260H:
AJMP 0012H
AJMP 009BH
L0264H:
JC L0268H
CLR C
RET
L0268H:
MOV
DPTR, #008FH
MOVX A, @DPTR
MOV 25H, A
MOV R7, #01H
MOV R5, 24H
LCALL L019BH
JC L0279H
CLR C
RET
L0279H:
MOV R7, 25H
CLR A
MOV R6, A
L027DH:
MOV A, R6
SETB C
L027FH:
SUBB A, 24H
JNC L0293H
MOV A, #8EH
ADD A, R6
MOV DPL, A
CLR A
ADDC A, #00H
MOV DPH, A
MOVX A, @DPTR
ADD A, R7
MOV R7, A
INC R6
SJMP L027DH
L0293H:
MOV A, R7
JZ L0298H
CLR C
RET
L0298H:
MOV R7, #58H
MOV R5, #28H
MOV R3, 25H
LCALL L009EH
MOV R7, #68H
MOV R5, #28H
MOV R2, #08H
MOV R3, #0AH
MOV 2AH, #01H
LCALL L0067H
SETB C
RET
L02B1H: /* 发送无PLC 类型错误信号 */
MOV R7, #50H
MOV R5, #28H
LCALL L000EH
MOV R7, #58H
MOV R5, #28H
LCALL L000EH
MOV R7, #60H
MOV R5, #28H
LCALL L000EH
MOV C, 00H
CLR A
RLC A
MOV R7, A
MOV DPTR, #0101H
CLR A
MOVC A, @A+DPTR
ORL A, R7
MOV DPTR, #0008H
MOVX @DPTR, A
MOV DPTR, #0007H
CLR A /* 发送无PLC 类型错误信号 */
MOVC A, @A+DPTR
MOV DPTR, #0009H
MOVX @DPTR, A
MOV DPTR, #2300H
CLR A
MOVC A, @A+DPTR
MOV DPTR, #000AH
MOVX @DPTR, A
MOV DPTR, #4000H
CLR A
MOVC A, @A+DPTR
MOV DPTR, #000BH
MOVX @DPTR, A
MOV DPTR, #2301H
CLR A
MOVC A, @A+DPTR
MOV DPTR, #000CH
MOVX @DPTR, A
MOV DPTR, #0100H
CLR A
MOVC A, @A+DPTR
MOV DPTR, #000DH
L0301H:
MOVX @DPTR, A
MOV DPTR, #0102H
CLR A
MOVC A, @A+DPTR
MOV DPTR, #000EH
MOVX @DPTR, A
CLR A
MOV R7, A
L030DH: /* 发送无PLC 类型错误信号 */
CLR C
MOV A, R7
SUBB A, #08H
JNC L0328H
MOV A, R7
MOV DPTR, #0103H
MOVC A, @A+DPTR
MOV R6, A
MOV A, #0FH
ADD A, R7
MOV DPL, A
CLR A
ADDC A, #00H
MOV DPH, A
MOV A, R6
MOVX @DPTR, A
INC R7
SJMP L030DH
L0328H:
CLR A
MOV R6, A
MOV R7, A
L032BH:
MOV A, R7
CLR C
SUBB A, #0FH
JNC L0341H
MOV A, #08H
ADD A, R7
MOV DPL, A
CLR A
ADDC A, #00H
MOV DPH, A
MOVX A, @DPTR
ADD A, R6
MOV R6, A
INC R7
SJMP L032BH
L0341H:
MOV A, R6
CPL A
INC A
MOV DPTR, #0017H
MOVX @DPTR, A
CLR A
MOV R7, A
MOV R5, #10H
LCALL L021CH /*调用发送程序 /* 发送无PLC 类型错误信号 */
RET
L0350H:
MOV R6, #00H
MOV R7, #00H
LCALL L0CBAH
CLR A
MOV R7, A
MOV R6, A
L035AH:
MOV A, R6
CLR C
SUBB A, #08H
JNC L037DH
MOV A, #00H
ADD A, R6
MOV DPL, A
CLR A
ADDC A, #00H
MOV DPH, A
MOVX A, @DPTR
MOV R5, A
MOV A, #08H
ADD A, R6
MOV DPL, A
CLR A
ADDC A, #00H
MOV DPH, A
MOV A, R5
MOVX @DPTR, A
ADD A, R7
MOV R7, A
INC R6
SJMP L035AH
L037DH:
MOV A, R7
CPL A
INC A
MOV DPTR, #0010H
MOVX @DPTR, A
CLR A
MOV R7, A
MOV R5, #09H
LCALL L021CH /*调用发送程序*/
RET
L038CH:
JNB 09H, L039BH
MOV DPTR, #0008H
MOV A, #4FH
MOVX @DPTR, A
INC DPTR
MOV A, #4BH
MOVX @DPTR, A
SJMP L03A5H
L039BH:
MOV DPTR, #0008H
MOV A, #4EH
MOVX @DPTR, A
INC DPTR
MOV A, #47H
MOVX @DPTR, A
L03A5H:
CLR A
MOV R7, A
MOV R5, #02H
LCALL L021CH /*调用发送程序*/
RET
L03ADH:
MOV DPTR, #008EH
MOVX A, @DPTR
ADD A, #0FCH
MOV 25H, A
MOV DPTR, #0090H
MOVX A, @DPTR
MOV R6, A
INC DPTR
MOVX A, @DPTR
MOV R5, A
MOV A, R6
MOV 26H, A
MOV A, R5
MOV 27H, A
CLR A
MOV 24H, A
L03C6H:
MOV A, 24H
CLR C
SUBB A, 25H
JNC L03F1H
MOV R6, 26H
MOV R7, 27H
MOV A, #92H
ADD A, 24H
MOV DPL, A
CLR A
ADDC A, #00H
MOV DPH, A
MOVX A, @DPTR
MOV R5, A
LCALL L081AH
JC L03E5H
CLR C
RET
L03E5H:
INC 27H
MOV A, 27H
JNZ L03EDH
INC 26H
L03EDH:
INC 24H
SJMP L03C6H
L03F1H:
SETB C
RET
L03F3H:
CLR A
MOV 24H, A
L03F6H:
MOV A, 24H
CLR C
SUBB A, #08H
JNC L0421H
MOV A, #03H
ADD A, 24H
MOV DPL, A
CLR A
ADDC A, #01H
DB 0AFH
L0407H:
ANL C, 0F8H.6
MOV A, #90H
ADD A, 24H
MOV DPL, A
CLR A
ADDC A, #00H
MOV DPH, A
MOVX A, @DPTR
MOV R5, A
LCALL L081AH
JC L041DH
CLR C
RET
L041DH:
INC 24H
SJMP L03F6H
L0421H:
MOV R6, #01H
MOV R7, #00H
MOV DPTR, #0098H
MOVX A, @DPTR
MOV R5, A
LCALL L081AH
JC L0431H
CLR C
RET
L0431H:
MOV R6, #01H
MOV R7, #01H
MOV DPTR, #0099H
MOVX A, @DPTR
MOV R5, A
LCALL L081AH
JC L0441H
CLR C
RET
L0441H:
MOV R6, #01H
MOV R7, #02H
MOV DPTR, #009AH
MOVX A, @DPTR
MOV R5, A
LCALL L081AH
JC L0451H
CLR C
RET
L0451H:
SETB C
RET
L0453H:
MOV R7, #02H
LCALL L0829H
JC L045CH
CLR C
RET
L045CH:
MOV R7, #03H
LCALL L0829H
JC L0465H
CLR C
RET
L0465H:
MOV R7, #50H
MOV R5, #28H
MOV R2, #05H
MOV R3, #4AH
CLR 09H
CLR 0AH
LCALL L08A3H
MOV R7, #58H
MOV R5, #28H
MOV R2, #05H
MOV R3, #3AH
CLR 09H
CLR 0AH
LCALL L08A3H
MOV R7, #60H
MOV R5, #28H
MOV R2, #05H
MOV R3, #3AH
CLR 09H
CLR 0AH
LCALL L08A3H
MOV R7, #68H
MOV R5, #28H
MOV R2, #08H
MOV R3, #0AH
MOV 2AH, #01H
LCALL L0067H
SETB C
RET
L04A2H:
MOV R7, #09H
CLR A
MOV R5, A
MOV R3, A
MOV 27H, #01H
LCALL L0AA6H
LCALL L09EDH
MOV R7, #38H
MOV R5, #10H
MOV R2, #07H
MOV R3, #5AH
MOV 2AH, #0BH
LCALL L0067H
L04BEH:
LCALL L0CE3H
JNC L0519H /*超时 产生复位*/
LCALL L024CH
JNC L04BEH
MOV DPTR, #008FH
MOVX A, @DPTR
ADD A, #0FEH
/* MOV A,#00H /*改过*/
JZ L04E7H
/*原JZ L04e7h*/
ADD A, #81H
JZ L04ECH
DEC A
JZ L04FBH
DEC A
JZ L0505H
ADD A, #84H
JZ L050FH
ADD A, #0FEH
JNZ L04BEH
LCALL L02B1H /*调用PLC 发送 类型错误*/
/* 原来 LCALL L02B1H */
SJMP L04BEH
L04E7H:
LCALL L0350H
SJMP L04BEH
L04ECH:
MOV DPTR, #0090H
MOVX A, @DPTR
MOV R7, A
LCALL L001AH
MOV 09H, C
LCALL L038CH
SJMP L04BEH
L04FBH:
LCALL L03ADH
MOV 09H, C
LCALL L038CH
SJMP L04BEH
L0505H:
LCALL L03F3H
MOV 09H, C
LCALL L038CH
SJMP L04BEH
L050FH:
LCALL L0453H
MOV 09H, C
LCALL L038CH
SJMP L04BEH
L0519H:
LCALL L0202H /*产生复位*/
RET
L051DH:
SETB P1.7
CLR P1.6
MOV A, R7
CPL A
MOV P0, A
MOV R7, #05H
LCALL L0C16H
CLR P3.7
MOV P2, #0FFH
MOV A, P2
CPL A
SETB P3.7
SETB P1.6
ANL A, #1FH
MOV R7, A
RET
MOVX @DPTR, A
MOV R0, A
INC R4
INC A
INC R4
MOV R0, A
MOVX @DPTR, A
NOP
RR A
INC @R1
INC R4
INC R0
INC R4
INC @R1
RR A
NOP
L054AH:
NOP
JBC 18H, L054AH
MOV R4, A
NOP
NOP
NOP
NOP
INC R0
INC R0
INC R7
INC R7
INC R0
INC R0
NOP
INC R0
INC R4
DIV AB
SWAP A
XRL A, #3CH
DEC R0
NOP
INC R6
INC R7
INC R1
INC R0
INC R0
INC R4
INC R4
NOP
INC R0
INC R4
ORL A, #44H
ORL A, #0FCH
CJNE R0, #00H, L0577H
INC R4
INC R0
INC R0
INC R0
L0577H:
INC R7
INC @R1
NOP
PUSH ACC
ANL C, /RI
MOV R4, A
MOV R4, A
SJMP L0582H
L0582H:
NOP
NOP
NOP
INC R0
INC R7
INC R7
INC R0
NOP
MOV R4, #7CH
ORL A, #44H
ORL A, #0C4H
DIV AB
NOP
INC A
INC R4
INC R0
INC R0
INC R0
INC R7
INC @R1
NOP
MOVX @DPTR, A
MOV R0, A
ORL A, R4
ORL A, #44H
PUSH P0
NOP
INC @R1
INC R7
INC R0
INC R0
INC R0
INC R7
INC @R1
NOP
INC R4
INC R4
INC A
DIV AB
SWAP A
MOV R4, #3CH
NOP
NOP
NOP
INC R7
INC R7
NOP
NOP
NOP
NOP
CJNE R0, #0FCH, L0601H
ORL A, #44H
MOV R4, A
CJNE R0, #00H, L05CAH
INC R7
INC R0
INC R0
INC R0
INC R7
INC @R1
NOP
L05CAH:
ADDC A, R0
DB 7CH
L05CCH:
ORL A, #44H
L05CEH:
ORL A, #0FCH
L05D0H:
MOV R0, A
NOP
NOP
INC R0
INC R0
INC R0
INC R4
INC @R1
RR A
NOP
MOVX A, @DPTR
MOVX @DPTR, A
SUBB A, R0
L05DDH:
MOV SCON, R4
MOVX @DPTR, A
MOVX A, @DPTR
L05E1H:
NOP
INC R7
INC R7
NOP
NOP
NOP
INC R7
INC R7
NOP
INC A
MOV R4, A
MOV R4, A
ORL A, #44H
MOV R4, A
CJNE R0, #00H, L05FBH
INC R7
INC R7
INC R0
INC R0
INC R7
INC @R1
NOP
MOVX @DPTR, A
L05FBH:
MOV R0, A
INC R4
INC A
INC A
INC R4
DEC R0
L0601H:
NOP
RR A
INC @R1
INC R4
INC R0
INC R0
INC R4
INC @R0
NOP
INC A
MOV R4, A
MOV R4, A
INC A
INC R4
MOV R0, A
MOVX @DPTR, A
NOP
INC R0
INC R7
INC R7
INC R0
INC R4
INC @R1
RR A
NOP
INC A
MOV R4, A
L061CH:
MOV R4, A
ORL A, #0E4H
INC R4
DEC R4
NOP
INC R0
INC R7
INC R7
INC R0
INC R0
INC R4
INC R6
NOP
INC A
MOV R4, A
MOV R4, A
ORL A, #0E4H
INC R4
DEC R4
NOP
INC R0
INC R7
INC R7
INC R0
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
SJMP L05CCH
SJMP L05CEH
SJMP L05D0H
DB 80H
L0651H:
NOP
L0652H:
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
SJMP L05DDH
MOVX A, @DPTR
MOVX A, @DPTR
SJMP L05E1H
NOP
NOP
NOP
NOP
RR A
RR A
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
INC R4
INC R4
NOP
NOP
NOP
SJMP L061CH
MOVX A, @DPTR
L067DH:
PUSH 0C0H
MOVX A, @DPTR
ORL C, /P0.0
NOP
LJMP L0301H
AJMP L0003H
LJMP L0020H
MOVX A, @DPTR
L068CH:
PUSH 20H
JB ACC.0, L0651H
NOP
JC L0713H
MOV R7, #48H
INC R0
INC R7
INC @R1
NOP
NOP
NOP
INC A
MOV R4, A
MOV R4, A
NOP
L06A0H:
NOP
NOP
NOP
NOP
INC R0
INC R7
INC R7
INC R0
NOP
NOP
JC L068CH
ORL C, /20H
JB 60H, L06F1H
NOP
INC A
INC R4
INC R1
INC R1
INC R3
INC R6
INC A
NOP
JB ACC.0, L067DH
JB 20H, L06A0H
PUSH 00H
NOP
INC R7
INC R7
NOP
NOP
INC R7
INC R7
NOP
PUSH ACC
DB 20H
L06CDH:
JB 20H, 06B0H
PUSH 00H
INC @R1
INC R7
INC R0
INC R0
INC R0
INC R7
INC @R1
NOP
INC A
MOV R4, A
MOV R4, A
INC A
INC R4
MOV R0, A
MOVX @DPTR, A
NOP
INC R0
INC R7
INC R7
INC R0
INC R4
INC @R1
RR A
NOP
PUSH ACC
JB 20H, L070FH
L06EFH:
MOVX A, @DPTR
L06F0H:
DB 0C0H
L06F1H:
NOP
INC @R1
INC R7
INC R0
INC R0
INC R0
INC R7
INC @R1
NOP
MOVX A, @DPTR
MOVX A, @DPTR
NOP
SJMP L06FFH
L06FFH:
MOVX A, @DPTR
MOVX A, @DPTR
NOP
INC @R1
INC R7
INC R4
INC @R1
INC R4
INC R7
INC @R1
NOP
JB ACC.0, L06CDH
DB 20H, 20H
L070FH:
MOVX A, @DPTR
PUSH 00H
NOP
L0713H:
INC R7
INC R7
NOP
NOP
INC R7
INC R7
NOP
INC A
MOV R4, A
MOV R4, A
INC A
INC R4
MOV R0, A
MOVX @DPTR, A
NOP
INC R0
INC R7
INC R7
INC R0
INC R4
INC @R1
RR A
NOP
NOP
ORL C, /P2.0
ORL C, /ACC.0
PUSH 00H
NOP
INC @R1
INC R7
INC R0
L0735H:
INC R0
INC @R1
INC R7
INC R0
NOP
JB 20H, L0735H
MOV R4, A
JB 20H, L0741H
L0741H:
NOP
NOP
NOP
INC @R1
INC R7
INC R0
INC R4
INC A
NOP
NOP
ORL C, /P2.0
L074DH:
ORL C, /ACC.0
PUSH 00H
NOP
INC @R1
INC R7
INC R0
INC R0
INC @R1
INC R7
INC R0
NOP
INC A
MOV R4, A
MOV R4, A
INC A
INC R4
MOV R0, A
MOVX @DPTR, A
NOP
INC R0
INC R7
INC R7
INC R0
INC R4
INC @R1
RR A
NOP
PUSH ACC
JB 20H, L078FH
MOVX A, @DPTR
L0770H:
PUSH 00H
INC @R1
INC R7
INC R0
INC R0
INC R0
INC R7
INC @R1
NOP
MOVX A, @DPTR
MOVX A, @DPTR
NOP
SJMP L077FH
L077FH:
MOVX A, @DPTR
MOVX A, @DPTR
NOP
INC @R1
INC R7
INC R4
INC @R1
INC R4
INC R7
INC @R1
NOP
DB 20H
MOVX A, @DPTR
L078CH:
PUSH 20H
DB 20H
L078FH:
MOVX A, @DPTR
PUSH 00H
NOP
INC R7
INC R7
NOP
NOP
INC R7
INC R7
NOP
NOP
NOP
INC A
MOV R4, A
MOV R4, A
NOP
NOP
NOP
NOP
NOP
INC R0
INC R7
INC R7
INC R0
NOP
NOP
PUSH ACC
DB 20H
L07ADH:
JB 20H, 0790H
PUSH 00H
INC @R1
INC R7
INC R0
INC R0
INC R0
INC R7
INC @R1
NOP
NOP
ORL C, /P2.0
ORL C, /ACC.0
L07BFH:
PUSH 00H
NOP
INC @R1
INC R7
INC R0
INC R0
INC @R1
INC R7
INC R0
NOP
DB 80H
L07CBH:
PUSH 60H
ADD A, #0FCH
L07CFH:
MOV R4, A
L07D0H:
NOP
NOP
INC @R1
INC R7
INC R0
INC R0
INC @R1
INC R7
INC R0
NOP
NOP
NOP
JB 0E8H.4, L07CBH
NOP
NOP
NOP
NOP
NOP
INC R0
INC R7
INC R7
INC R0
NOP
NOP
JB ACC.0, L07ADH
JB 20H, L07D0H
PUSH 00H
L07F2H:
NOP
INC R7
INC R7
NOP
NOP
INC R7
INC R7
NOP
PUSH ACC
JB 20H, L07BFH
MOVX A, @DPTR
L0800H:
DB 20H
L0801H:
NOP
L0802H:
ADD A, @R1
XRL A, R7
ORL A, R0
ORL A, R0
L0806H:
MOV R7, #3FH
L0808H:
NOP
L0809H:
NOP
JNB 30H, L080DH
L080DH:
SJMP L07CFH
DB 60H
L0810H:
JNB 00H, 081FH
INC @R0
L0814H:
RR A
AJMP L0800H
INC R4
INC R4
NOP
L081AH:
MOV AUXR1, #20H
MOV R0, #0BH
MOV R1, #02H
MOV DPH, R6
MOV DPL, R7
MOV A, R5
LJMP L084BH
L0829H:
DB 75H
L082AH:
MOV C, 20H
MOV R0, #0BH
MOV R1, #05H
MOV DPH, #00H
MOV A, R7
DEC A
MOV DPL, A
LJMP L084BH
L083AH:
MOV AUXR1, #20H
MOV R0, #0BH
MOV R1, #0CH
L0841H:
MOV A, R7
SWAP A
MOV DPH, A
MOV DPL, #00H
LJMP L084BH
L084BH:
LCALL LFFF0H
JZ L0852H
CLR C
RET
L0852H:
SETB C
RET
L0854H:
MOV A, R7
DEC A
JZ L0866H
DEC A
JZ L086DH
ADD A, #02H
JNZ L0874H
CLR P1.2
SETB P1.3
SETB P1.4
RET
L0866H:
SETB P1.2
CLR P1.3
SETB P1.4
RET
L086DH:
SETB P1.2
SETB P1.3
CLR P1.4
RET
L0874H:
SETB P1.2
SETB P1.3
SETB P1.4
RET
L087BH:
LCALL L0008H
JNB 0BH, L0884H
CLR C
SJMP L0885H
L0884H:
SETB C
L0885H:
MOV P1.0, C
CLR P1.1
LCALL L0854H
CLR EA /*关闭中断 防止写*/
SETB P1.7
CLR P1.6
MOV P0, 39H
SETB P1.5
CLR P1.5
MOV R7, #0FFH
LCALL L0854H
SETB P1.6
SETB EA /*开中断 */
RET
L08A3H:
MOV 2CH, R7
MOV 2DH, R2
MOV 2EH, R3
MOV A, R5
RRC A
RRC A
RRC A
ANL A, #1FH
MOV 2FH, A
MOV R6, #01H
MOV R7, #14H
MOV R5, #2DH
MOV C, 09H
MOV 0BH, C
LCALL L08E4H
MOV R6, #01H
MOV R7, #14H
MOV R5, 2CH
MOV R3, 2FH
LCALL L0958H
MOV R6, #01H
MOV R7, #14H
MOV R5, #2DH
MOV C, 09H
MOV 0BH, C
LCALL L08E4H
MOV R6, #01H
MOV R7, #14H
MOV R5, 2CH
MOV A, 2FH
INC A
MOV R3, A
LCALL L0958H
RET
L08E4H:
MOV 32H, R6
MOV 33H, R7
MOV 34H, R5
CLR A
MOV 35H, A
L08EDH:
MOV A, 35H
CLR C
SUBB A, #04H
JNC L0957H
MOV R0, 34H
INC R0
INC @R0
MOV A, @R0
DEC R0
MOV 06H, @R0
JNZ L08FFH
INC @R0
L08FFH:
DEC A
MOV DPL, A
MOV DPH, R6
CLR A
MOVC A, @A+DPTR
MOV R7, #00H
MOV R6, A
MOV R0, 34H
INC R0
INC @R0
MOV A, @R0
DEC R0
MOV 04H, @R0
JNZ L0914H
INC @R0
L0914H:
DEC A
MOV DPL, A
MOV DPH, R4
CLR A
MOVC A, @A+DPTR
MOV R5, A
MOV A, R6
MOV A, R7
ORL A, R5
MOV R7, A
LCALL L0006H
MOV 36H, R6
MOV 37H, R7
JNB 0BH, L0930H
XRL 37H, #0FFH
XRL 36H, #0FFH
L0930H:
MOV A, 36H
MOV R7, A
MOV A, 35H
ADD A, ACC
ADD A, 33H
MOV DPL, A
CLR A
ADDC A, 32H
MOV DPH, A
MOV A, R7
MOVX @DPTR, A
MOV A, 35H
ADD A, ACC
INC A
ADD A, 33H
MOV DPL, A
CLR A
ADDC
A, 32H
MOV DPH, A
MOV A, 37H
MOVX @DPTR, A
INC 35H
SJMP L08EDH
L0957H:
RET
L0958H:
MOV 32H, R6
MOV 33H, R7
MOV 34H, R5
MOV 35H, R3
MOV A, 34H
SWAP A
RRC A
RRC A
ANL A, #03H
MOV 37H, A
ANL 34H, #3FH
MOV R7, A
MOV A, 35H
ADD A, #0B8H
MOV R5, A
LCALL L00F1H
MOV R7, 37H
MOV A, 34H
ADD A, #40H
MOV R5, A
LCALL L00F1H
CLR A
MOV 36H, A
L0982H:
MOV A, 36H
CLR C
SUBB A, #08H
JNC L09C1H
MOV R7, 37H
MOV A, 33H
ADD A, 36H
MOV DPL, A
CLR A
ADDC A, 32H
MOV DPH, A
MOVX A, @DPTR
MOV R5, A
LCALL L01EDH
INC 34H
MOV A, 34H
SETB C
SUBB A, #3FH
JC L09BDH
CLR A
MOV 34H, A
INC 37H
MOV R7, 37H
MOV A, 35H
ADD A, #0B8H
MOV R5, A
LCALL L00F1H
MOV R7, 37H
MOV A, 34H
ADD A, #40H
MOV R5, A
LCALL L00F1H
L09BDH:
INC 36H
SJMP L0982H
L09C1H:
RET
L09C2H:
LCALL L09CFH
LCALL L09EDH
LCALL L09D5H
LCALL L00F9H
RET
L09CFH:
MOV R7, #3EH
LCALL L09DBH
RET
L09D5H:
MOV R7, #0C0H
LCALL L09DBH
RET
L09DBH:
MOV R5, 07H
CLR A
MOV R7, A
LCALL L00F1H
MOV R7, #01H
LCALL L00F1H
MOV R7, #02H
LCALL L00F1H
RET
L09EDH:
CLR A
MOV R7, A
LCALL L09FDH
MOV R7, #01H
LCALL L09FDH
MOV R7, #02H
LCALL L09FDH
RET
L09FDH:
CLR A
MOV R5, A
MOV R4, A
LCALL L0A04H
RET
L0A04H:
MOV 24H, R4
MOV 25H, R5
MOV R4, 07H
CLR A
MOV R3, A
L0A0CH:
MOV A, R3
CLR C
SUBB A, #08H
JNC L0A3FH
MOV R7, 04H
MOV A, R3
ADD A, #0B8H
MOV R5, A
LCALL L00F1H
MOV R7, 04H
MOV R5, #40H
LCALL L00F1H
CLR A
MOV R2, A
L0A24H:
MOV A, R2
CLR C
SUBB A, #20H
JNC L0A3CH
MOV R7, 04H
MOV A, 24H
MOV R5, A
LCALL L01EDH
MOV R7, 04H
MOV R5, 25H
LCALL L01EDH
INC R2
SJMP L0A24H
L0A3CH:
INC R3
SJMP L0A0CH
L0A3FH:
RET
L0A40H:
CLR P3.4 /*关闭时钟 片选信号*/
RET
L0A43H:
SETB IT0
RET
L0A46H:
SETB EX0 /*开外部中断 0 用于通讯快速响应*/
RET
L0A49H: /*外部中断0 通讯中断处理程序*/
PUSH ACC
PUSH B
PUSH DPH
PUSH DPL
PUSH PSW
MOV PSW, #08H
LCALL L0CE7H
POP PSW
POP DPL
POP DPH
POP B
POP ACC
RETI
L0A64H:
SETB EA
RET
L0A67H:
MOV A, R7
MOV R5, A
MOV R4, #00H
JZ L0A70H
SETB C
SJMP L0A71H
L0A70H:
CLR C
L0A71H:
MOV 08H, C
MOV A, R5
XRL A, #01H
ORL A, R4
JNZ L0A7CH
SETB C
SJMP L0A7DH
L0A7CH:
CLR C
L0A7DH:
MOV 04H, C
MOV A, R5
XRL A, #02H
ORL A, R4
JNZ L0A88H
SETB C
SJMP L0A89H
L0A88H:
CLR C
L0A89H:
MOV 03H, C
MOV A, R7
MOV R5, A
MOV R4, #00H
XRL A, #03H
JNZ L0A96H
SETB C
SJMP L0A97H
L0A96H:
CLR C
L0A97H:
MOV 02H, C
MOV A, R5
XRL A, #04H
ORL A, R4
JNZ L0AA2H
SETB C
SJMP L0AA3H
L0AA2H:
CLR C
L0AA3H:
MOV 06H, C
RET
L0AA6H:
XCH A, R6
MOV A, R7
XCH A, R6
XCH A, R7
MOV A, R5
XCH A, R7
LCALL L0A67H
MOV A, R3
JNZ L0AB5H
SETB C
SJMP L0AB6H
L0AB5H:
CLR C
L0AB6H:
MOV 05H, C
MOV A, 27H
JNZ L0ABFH
SETB C
SJMP L0AC0H
L0ABFH:
CLR C
L0AC0H:
MOV 07H, C
JNB 05H, L0AC9H
MOV R7, #08H
SJMP L0ACBH
L0AC9H:
MOV R7, #07H
L0ACBH:
JNB 08H, L0AD2H
MOV R5, #01H
SJMP L0AD4H
L0AD2H:
MOV R5, #00H
L0AD4H:
MOV A, R5
ADD A, R7
MOV R7, A
JNB 07H, L0ADEH
MOV R5, #01H
SJMP L0AE0H
L0ADEH:
MOV R5, #00H
L0AE0H:
MOV A, R5
ADD A, R7
CLR C
SUBB A, #09H
JC L0AECH
MOV SCON, #0D0H
SJMP L0AEFH
L0AECH:
MOV SCON, #50H
L0AEFH:
CLR TR1
MOV A, R6
ADD A, #0F7H
JNZ L0B01H
MOV PCON, #80H
MOV TL1, #0FEH
MOV TH1, #0FEH
SJMP L0B0AH
L0B01H:
CLR A
MOV PCON, A
MOV TL1, #0FAH
MOV TH1, #0FAH
L0B0AH:
MOV A, TMOD
ANL A, #0FH
ORL A, #20H
MOV TMOD, A
SETB TR1
RET
L0B15H:
MOV A, SBUF
/*...............
MOV R1,A
MOV A,R0
MOV R2,A
MOV A,70H
CJNE A,#04H,next
nop
MOV A,71H
MOV A,72H
MOV A,73H
MOV A,74H
MOV A,75H
MOV A,76H
MOV A,77H
MOV A,78H
MOV A,79H
MOV A,7aH
MOV A,7bH
next:
ADD A,#71H
MOV R0,A
MOV A,R1
MOV @R0,A
INC 70H
MOV A,R2
MOV R0,A
MOV A,R1
*/
JNB 05H, L0B55H
JNB 08H, L0B47H
JNB 04H, L0B2AH
MOV C, P
JNB RB8, L0B26H
CPL C
L0B26H:
JC L0B2AH
CLR C
RET
L0B2AH:
JNB 03H, L0B37H
MOV C, P
JNB RB8, L0B33H
CPL C
L0B33H:
JNC L0B37H
CLR C
RET
L0B37H:
JNB 02H, L0B3FH
JB RB8, L0B3FH
CLR C
RET
L0B3FH:
JNB 06H, L0B4FH
JNB RB8, L0B4FH
CLR C
RET
L0B47H:
JNB 07H, L0B4FH
JB RB8, L0B4FH
CLR C
RET
L0B4FH:
XCH A, R0
MOV A, R7
XCH A, R0
MOV @R0, A
SJMP L0B8EH
L0B55H:
JNB 08H, L0B80H
JB 04H, L0B5EH
JNB 03H, L0B68H
L0B5EH:
MOV C, P
JNB 04H, L0B64H
CPL C
L0B64H:
JNC L0B68H
CLR C
RET
L0B68H:
JNB 02H, L0B70H
JB ACC.7, L0B70H
CLR C
RET
L0B70H:
JNB 06H, L0B78H
JNB ACC.7, L0B78H
CLR C
RET
L0B78H:
JNB 07H, L0B88H
JB RB8, L0B88H
CLR C
RET
L0B80H:
JNB 07H, L0B88H
JB ACC.7, L0B88H
CLR C
RET
L0B88H:
ANL A, #7FH
XCH A, R0
MOV A, R7
XCH A, R0
MOV @R0, A
L0B8EH:
SETB C
RET
L0B90H:
MOV A, R7
JNB 05H, L0BB9H
JNB 08H, L0BB2H
JNB 04H, L0B9FH
MOV C, P
CPL C
MOV TB8, C
L0B9FH:
JNB 03H, L0BA6H
MOV C, P
MOV TB8, C
L0BA6H:
JNB 02H, L0BABH
SETB TB8
L0BABH:
JNB 06H, L0BE6H
CLR TB8
SJMP L0BE6H
L0BB2H:
JNB 07H, L0BE6H
SETB TB8
SJMP L0BE6H
L0BB9H:
ANL A, #7FH
JNB 08H, L0BE1H
JB 04H, L0BC4H
JNB 03H, L0BD5H
L0BC4H:
MOV
R7, A
MOV C, P
JNB 04H, L0BCBH
CPL C
L0BCBH:
JNC L0BD1H
MOV R6, #80H
SJMP L0BD3H
L0BD1H:
MOV R6, #00H
L0BD3H:
MOV A, R6
ORL A, R7
L0BD5H:
JNB 02H, L0BDAH
ORL A, #80H
L0BDAH:
JNB 07H, L0BE6H
SETB TB8
SJMP L0BE6H
L0BE1H:
JNB 07H, L0BE6H
ORL A, #80H
L0BE6H:
/*.....................
MOV R0,#0FFH
loop1:
MOV A,R0
/*................*/
MOV SBUF, A /*发送数据*/
/*
WAIT: JNB TI,WAIT
CLR TI
DJNZ R0,loop1
NOP
/*
MOV R1,A
MOV A,R0
MOV R2,A
MOV A,70H
CJNE A,#0eH,next1
nop
MOV A,71H
MOV A,72H
MOV A,73H
MOV A,74H
MOV A,75H
MOV A,76H
MOV A,77H
MOV A,78H
MOV A,79H
MOV A,7aH
MOV A,7bH
MOV A,7cH
MOV A,7dH
MOV A,7eH
MOV A,7fH
next1:
ADD A,#71H
MOV R0,A
MOV A,R1
MOV @R0,A
inc 70h
MOV A,R2
MOV R0,A
MOV A,R1
*/
RET
L0BE9H:
MOV C, RI
RET
L0BECH:
MOV C, TI
RET
L0BEFH:
CLR RI
RET
L0BF2H:
CLR TI
RET
L0BF5H:
CLR TR0
CLR A
MOV 23H, A
L0BFAH:
MOV A, 23H
CLR C
SUBB A, #0C8H
JNC L0C13H
CLR P3.6
MOV R7, #19H
LCALL L0C16H
L0C08H:
SETB P3.6
MOV R7, #19H
LCALL L0C16H
INC 23H
SJMP L0BFAH
L0C13H:
SETB TR0
RET
L0C16H:
XCH A, R6
MOV A, R7
XCH A, R6
L0C19H:
MOV A, R7
SETB C
SUBB A, #00H
JC L0C22H
DEC R7
SJMP L0C19H
L0C22H:
MOV A, R6
SETB C
SUBB A, #00H
JC L0C2BH
DEC R6
SJMP L0C22H
L0C2BH:
RET
L0C2CH:
XCH A, R5
MOV A, R7
XCH A, R5
L0C2FH:
MOV A, R5
SETB C
SUBB A, #00H
JC L0C3DH
MOV R7, #73H
LCALL L0C16H
DEC R5
SJMP L0C2FH
L0C3DH:
RET
L0C3EH:
CLR P2.5
MOV R7, #23H
LCALL L0C16H
SETB P2.5
MOV R7, #0AH
LCALL L0C16H
JB P2.5, L0C3EH
L0C4FH:
JNB P2.5, L0C4FH
RET
L0C53H:
SETB P2.5
NOP
NOP
CLR P2.5
NOP
NOP
NOP
MOV C, 09H
MOV P2.5, C
MOV R7, #03H
LC
ALL L0C16H
RET
L0C66H:
SETB P2.5
NOP
NOP
CLR P2.5
SETB P2.5
NOP
NOP
NOP
NOP
MOV C, P2.5
MOV 09H, C
MOV R7, #03H
LCALL L0C16H
MOV C, 09H
RET
L0C7EH:
XCH A, R5
MOV A, R7
XCH A, R5
CLR A
MOV R3, A
L0C83H:
MOV A, R3
CLR C
SUBB A, #08H
JNC L0C97H
MOV A, R5
RRC A
MOV 09H, C
LCALL L0C53H
MOV A, R5
CLR C
RRC A
MOV R5, A
INC R3
SJMP L0C83H
L0C97H:
RET
L0C98H:
CLR A
MOV R4, A
L0C9AH:
MOV A, R4
CLR C
SUBB A, #08H
JNC L0CB0H
MOV A, R5
CLR C
RRC A
MOV R5, A
LCALL L0C66H
JNC L0CADH
MOV A, #80H
ADD A, R5
MOV R5, A
L0CADH:
INC R4
SJMP L0C9AH
L0CB0H:
XCH A, R7
MOV A, R5
XCH A, R7
RET
L0CB4H:
MOV R7, #33H
LCALL L0C7EH
RET
L0CBAH:
MOV 24H, R6
MOV 25H, R7
CLR EA
LCALL L0C3EH
LCALL L0CB4H
CLR A
MOV R3, A
L0CC8H:
MOV A, R3
CLR C
SUBB A, #08H
JNC L0CE0H
LCALL L0C98H
MOV A, 25H
ADD A, R3
MOV DPL, A
CLR A
ADDC A, 24H
MOV DPH, A
MOV A, R7
MOVX @DPTR, A
INC R3
SJMP L0CC8H
L0CE0H:
SETB EA
RET
L0CE3H:
MOV C, P3.2 /*识别 通讯中断 是否关闭 */
CPL C
RET
L0CE7H: /*外部中断0 通讯中断处理程序*/
CLR A
MOV R7, A
L0CE9H:
MOV A, R7
CLR C
SUBB A, #0AH
JNC L0CF7H
LCALL L0CE3H /*识别 通讯中断 是否关闭 */
JNC L0CFAH
INC R7 /*中断超时计数器 可能是干扰产生*/
SJMP L0CE9H /*等待通讯 中断关闭*/
L0CF7H:
LCALL L0202H /*产生复位*/
L0CFAH:
RET
L0CFBH:
LCALL L0202H /*产生复位*/
RET
L0CFFH:
LCALL L0202H /*产生复位*/
RET
L0D03H:
LCALL L0202H /*产生复位*/
RET
L0D07H:
MOV 23H, #01H
CLR A
MOV 24H, A
L0D0DH:
MOV A, 24H
CLR C
SUBB A, #04H
JNC L0D2EH
MOV R7, 23H
LCALL L051DH
MOV R5, 07H
MOV A, R5
JZ L0D24H
MOV R7, 23H
LCALL L0D31H
RET
L0D24H:
MOV A, 23H
ADD A, ACC
MOV 23H, A
INC 24H
SJMP L0D0DH
L0D2EH:
MOV R7, #00H
RET
L0D31H:
MOV R6, 07H
CLR A
MOV R4, A
L0D35H:
MOV A, R4
CLR C
SUBB A, #14H
JNC L0D79H
MOV B, #03H
MOV A, R4
MUL AB
ADD A, #7CH
MOV DPL, A
MOV A, B
ADDC A, #0DH
MOV DPH, A
CLR A
MOVC A, @A+DPTR
ANL A, R6
JZ L0D76H
MOV B, #03H
MOV A, R4
MUL AB
ADD A, #7DH
MOV DPL, A
MOV A, B
ADDC A, #0DH
MOV DPH, A
CLR A
MOVC A, @A+DPTR
ANL A, R5
JZ L0D76H
MOV B, #03H
MOV A, R4
MUL AB
ADD A, #7EH
MOV DPL, A
MOV A, B
ADDC A, #0DH
MOV DPH, A
CLR A
MOVC A, @A+DPTR
MOV R7, A
RET
L0D76H:
INC R4
SJMP L0D35H
L0D79H:
MOV R7, #00H
RET
AJMP L0801H
AJMP L0801H
JBC 02H, L0D85H
DB 02H
RR A
L0D85H:
AJMP 0804H
INC A
AJMP L0808H
INC 02H
AJMP L0806H
LJMP L0407H
AJMP L0802H
INC R0
INC A
AJMP L0809H
INC A
INC R0
INC R2
INC A
INC A
INC R3
INC A
LJMP L0C08H
INC R0
INC R5
INC R0
JBC 0EH, L0DABH
JBC 0FH, L0DB2H
DB 01H
L0DABH:
JBC 08H, 0DB0H
ACALL L0808H
INC A
DB 12H
L0DB2H:
LJMP 1013H
LJMP L0814H
L0DB8H:
MOV R0, #7FH /* 改过*/
CLR A
L0DBBH:
MOV @R0, A
DJNZ R0, L0DBBH
MOV SP, #39H /* 初始化数据区 清零*/
LJMP L012BH /* 跳转到 初始化定时器 中断等 */
LJMP L0202H
LJMP L0202H
DB 02H, 02H
ORG 01000H
L1000H:
MOV R7, #2CH
MOV R5, #18H
MOV R2, #06H
MOV R3, #8AH
MOV 2AH, #03H
LCALL L0067H
MOV R7, #4CH
MOV R5, #18H
MOV R2, #06H
MOV R3, #0DAH
MOV 2AH, #04H
LCALL L0067H
MOV R7, #74H
MOV R5, #18H
MOV R2, #07H
MOV R3, #1AH
MOV 2AH, #04H
LCALL L0067H
ORG 102AH
L102AH:
LCALL L011CH
MOV R7, #
64H
LCALL L0C2CH
SJMP L102AH
RET
LJMP L0202H
LJMP L0202H
ORG 1107H
DB 02H
L1108H:
NOP
LJMP L0202H
PUSH ACC
PUSH B
PUSH DPH
PUSH DPL
PUSH PSW
MOV PSW, #08H
JNB RI, HANDL1109H
LJMP HANDL110AH
HANDL1109H:
LJMP L6017H
HANDL110AH:
CLR RI
LCALL L0CFBH
LJMP L601CH
ORG 6017H
L6017H:
CLR TI
LCALL L0CFFH
ORG 601CH
L601CH:
POP PSW
POP DPL
POP DPH
POP B
POP ACC
RETI
LJMP L0202H
LJMP LC0E0H
PUSH B
PUSH DPH
PUSH DPL
PUSH PSW
MOV PSW, #08H
MOV TH0, #0EAH
MOV TL0, #67H
INC 11H
MOV A, 11H
CLR C
SUBB A, 10H
JC HANDL6420H
LJMP HANDL6421H
HANDL6420H:
LJMP L6422H
HANDL6421H:
CLR A
MOV 11H, A
LCALL L0D03H
ORG 6422H
L6422H:
POP PSW
POP DPL
POP DPH
POP B
POP ACC
RETI
LJMP L0202H
LJMP LFFFFH
MOV R7, A
ORG 0C0E0H
LC0E0H:
MOV R7, A
MOV R7, A
MOV R7, A
MOV R7, A
MOV R7, A
MOV R7, A
ORG 0FFF0H
LFFF0H:
MOV R7, A
MOV R7, A
MOV R7, A
MOV R7, A
ORG 0FFFFH
LFFFFH:
MOV R7, A
END