MOV A,R2
RL A
DJNE R4,KEY3
LJMP KEY
KEY4: MOV 20H,R2
MOV 21H,A
MOV R7,#00H
MOV A,#00H
MOV DPTR,#TAB1
KEY5: MOVC A,A+@DPTR
CJNE A,20H,KEY6
INC DPTR
PUSH DPH
PUSH DPL
CJNE A,21H,KEY6
MOV DPTR,#TAB2
MOV A,R7
ADD A,DPL
MOVC A,A+@DPTR
MOV 22H,A
KEY6: INC R7
POP DPL
POP DPH
AJMP KEY5
KST: MOV DPTR,#7FF9H
MOV A,#00H
MOVX @DPTR,A
INC DPTR
INC DPTR
MOVX A,@DPTR
ANL A,#0FH
RET
TAB1: DW FE0EH,FD0EH,FB0EH,F70EH
EF0EH,DF0EH,BF0EH,
DW FE0DH,FD0DH,FB0DH,F70DH
EF0DH,DF0DH,BF0DH,
DW FE0BH,FD0BH,FB0BH,F70BH
EF0BH,DF0BH,BF0BH,
DW FE07H,FD07H,FB07H,F707H
EF07H,DF07H,BF07H,
TAB2: DB 30H,31H,32H,33H,34H,35H,36H,37H
DISPLAY: SWTB RS0
PUSH ACC
PUSH DPH
PUSH DPL
MOV R2,#08H
MOV R0,#DISM7
DL0: MOV A,@R0
MOV DPTR,#TAB
MOVC A,@A+DPTR
MOV SBUF,A
DL1: JNB TI,DL1
CLR TI
TAB: Db C0H,F9H,A4H,B0H,99H
DB 92H,82H,F8H,80H,90H
DB 88H,83H,C6H,A1H,86H
DB 8EH,BFH,8CH,FFH
<< 上一页 [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] ... 下一页 >>