📄 key and display.lst
字号:
C51 COMPILER V7.06 KEY_AND_DISPLAY 12/03/2004 16:55:51 PAGE 1
C51 COMPILER V7.06, COMPILATION OF MODULE KEY_AND_DISPLAY
OBJECT MODULE PLACED IN key and display.OBJ
COMPILER INVOKED BY: C:\KEIL\C51\BIN\C51.EXE key and display.c BROWSE DEBUG OBJECTEXTEND
stmt level source
1 #include"reg52.h"
2 #define uchar unsigned char
3 uchar keyscan();
4 void showstr(uchar i,char *p);
5 uchar code str1[];
6 uchar code str0[];
7 void showword(uchar i,uchar j);
8 uchar readdat(uchar i);
9
10
11
12 save()
13 {}
14
15
16 kk()
17 {uchar key;
18 1 uchar count;
19 1
20 1
21 1 while (1)
22 1 { key=keyscan();
23 2
24 2 /******** ************/
25 2 if(key==0x0b)
26 2 {showstr(0x80,str1);
27 3 count=0xc0;
28 3 while (1)
29 3 {key=keyscan();
30 4 if(key==0x0c) //取消
31 4 { count--;
32 5 if (count<0xc0) goto out;
33 5 else showword(count-1,readdat(count-1));
34 5 }
35 4 else {if(count==0xcb) //确定
36 5 {if (key==0x0b)
37 6 {save();goto out;}
38 6 //}
39 6 else
40 6 {if((key!=0x0b)&(key!=0x0c)) //数字
41 7 {if(key==0x0a)
42 8 {key=0x00;
43 9 showword(count,0x30);
44 9 count++;
45 9 key=0x0a;}
46 8 else {if(key!=0xff)
47 9 {showword(count,0x30+key);
48 10 count++;}}
49 8 }}}
50 5 } } }
51 2
52 2 out: showstr(0x80,str0);
53 2 }
54 1
55 1
C51 COMPILER V7.06 KEY_AND_DISPLAY 12/03/2004 16:55:51 PAGE 2
56 1
*** ERROR C141 IN LINE 56 OF KEY AND DISPLAY.C: syntax error near ''
C51 COMPILATION COMPLETE. 0 WARNING(S), 1 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -