📄 kkee.lst
字号:
C51 COMPILER V7.01 KKEE 12/15/2006 18:48:39 PAGE 1
C51 COMPILER V7.01, COMPILATION OF MODULE KKEE
OBJECT MODULE PLACED IN kkee.OBJ
COMPILER INVOKED BY: C:\KEIL\C51\BIN\C51.EXE kkee.c BROWSE DEBUG OBJECTEXTEND
stmt level source
1 #include"reg52.h"
2 //#include"head.h"
3 #define uchar unsigned char
4 uchar keyscan();
5 void showstr(uchar i,char *p);
6 uchar code str0[];
7 uchar code str1[];
8 uchar code str2[];
9 uchar code str3[];
10 uchar code str4[];
11 uchar code strk[];
12 uchar code strn[];
13 uchar code strp[];
14 void showword(uchar i,uchar j);
15 void delays();
16 void delayl();
17 void wrline(uchar i,uchar *p);
18 uchar idata bufnu[11];
19 extern uchar idata num[11];
20 uchar idata pas[6];
21 sbit INT_1=P3^3;
22 save(uchar i)
23 {
24 1 switch(i)
25 1 {case 0x01:
26 2 P1=0x01;
27 2 INT_1=0;
28 2 delays();
29 2 while(INT_1==0);
30 2 INT1=1;
31 2 for(i=0;i<=11;i++)
32 2 {P1=bufnu[i];
33 3 INT1=0;
34 3 delays();
35 3 while(INT1==0);
36 3 INT1=1;
37 3 }
38 2 num[11]=bufnu[11];
39 2 break;
40 2 case 0x02:
41 2 P1=0x01;
42 2 INT_1=0;
43 2 delays();
44 2 while(INT_1==0);
45 2 INT1=1;
46 2 for(i=0;i<=11;i++)
47 2 {P1=bufnu[i];
48 3 INT1=0;
49 3 delays();
50 3 while(INT_1==0);
51 3 INT_1=1;
52 3 }
53 2 pas[6]=bufnu[6];
54 2 break;
55 2
C51 COMPILER V7.01 KKEE 12/15/2006 18:48:39 PAGE 2
56 2 }}
57
58
59 kk()
60 {uchar key;
61 1 uchar count;
62 1 while (1)
63 1 { key=keyscan();
64 2 /********1 ************/
65 2 if(key==0x0b)
66 2 {
67 3 showstr(0x80,str1);
68 3 count=0xc0;
69 3 while (1)
70 3 {key=keyscan();
71 4 switch (key)
72 4 { case 0x0c: //取消
73 5 count-=2;
74 5 if (count<0xc0) {showstr(0xc0,strk); goto out;}
75 5 else wrline(count,bufnu);
76 5 count++;
77 5 break;
78 5 case 0x0b:
79 5 if(count==0xcb) //确定
80 5 {save(0x01);goto out;}
81 5 if(count==0xc0) goto next;
82 5 break;
83 5 case 0xff:break;
84 5
85 5 default:
86 5 if(key==0x0a) //数字
87 5 {key=0x00;}
88 5 if(count>0xca) break;
89 5 bufnu[count-0xc0]=key+0x30;
90 5 wrline(count,bufnu);
91 5 count++;
92 5 }}}
93 2 }
94 1
95 1 /********2 ************/
96 1
97 1
98 1 next:
99 1 showstr(0x80,str2);
100 1 count=0xc0;
101 1 while (1)
102 1 {key=keyscan();
103 2 switch (key)
104 2 { case 0x0c: //取消
105 3 count-=2;
106 3 if (count<0xc0) {showstr(0xc0,strk); goto out;}
107 3 else wrline(count,bufnu);
108 3 count++;
109 3 break;
110 3 case 0x0b:
111 3 if(count==0xc6) //确定
112 3 {save(0x02);goto out;}
113 3 if(count==0xc0) goto next1;
114 3 break;
115 3 case 0xff:break;
116 3
117 3 default:
C51 COMPILER V7.01 KKEE 12/15/2006 18:48:39 PAGE 3
118 3 if(key==0x0a) //数字
119 3 {key=0x00;}
120 3 if(count>0xc5) break;
121 3 bufnu[count-0xc0]=key+0x30;
122 3 wrline(count,bufnu);
123 3 count++;
124 3 }}
125 1 /********3 ************/
126 1 next1: showstr(0x80,str3);
127 1 showstr(0xc0,num);
128 1 while(1)
129 1 {key=keyscan();
130 2 if (key==0x0b) goto next2;
131 2 if(key==0x0c) goto out;
132 2 }
133 1 /********4 ************/
134 1 next2: showstr(0x80,str4);
135 1 showstr(0xc0,pas);
136 1 while(1)
137 1 {key=keyscan();
138 2 if((key==0x0c)|(key==0x0b)) goto out;
139 2 }
140 1 out: showstr(0x80,str0);
141 1 showstr(0xc0,strk);
142 1 }
143
144
145
146 void readee()
147 { uchar i;
148 1 P1=0x03; //手机代号
149 1 INT_1=0;
150 1 delays();
151 1 // while(INT_1==0)
152 1 // {INT_1=1;}
153 1 // INT1=1;
154 1 for(i=0;i<11;i++)
155 1 {while(INT1==1);
156 2 num[i]=P1;
157 2 INT_1=1;
158 2 }
159 1 P1=0x04; //密码代号
160 1 INT_1=0;
161 1 delays();
162 1 // while(INT_1==0)
163 1 // {INT_1=1;}
164 1 // INT1=1;
165 1 for(i=0;i<6;i++)
166 1 {while(INT1==1);
167 2 pas[i]=P1;
168 2 INT_1=1;
169 2 }
170 1 }
171
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 542 ----
CONSTANT SIZE = ---- ----
XDATA SIZE = ---- ----
PDATA SIZE = ---- ----
DATA SIZE = ---- 3
C51 COMPILER V7.01 KKEE 12/15/2006 18:48:39 PAGE 4
IDATA SIZE = 17 ----
BIT SIZE = ---- ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -