📄 weida2.lst
字号:
C51 COMPILER V6.23a WEIDA2 09/12/2005 21:56:34 PAGE 1
C51 COMPILER V6.23a, COMPILATION OF MODULE WEIDA2
OBJECT MODULE PLACED IN weida2.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\c51.exe weida2.c DB OE SMALL ROM(LARGE)
stmt level source
1 /****************************************************************/
2 /*功能:打印各种字符或字符串
3 /*版本:v2.0
4 /*设计人:
5 /*编写日期:
6 /*最后修改日期:2005-09-08
7 /*状态:passed
8 /****************************************************************/
9 /*头文件定义*/
10 #include <reg51.h>
11 #include <absacc.h>
12 /*预定义部分*/
13 #define uchar unsigned char
14 #define uint unsigned int
15 #define ADDR XBYTE[0x8000]
16 sbit busy=P2^0;
17 sbit stb=P3^6;
18 uchar code en1[]={0x30,0x34,0x38,0x41,0x4f,0x61,0x6f,0x0d,0x11};
19 uchar code en2[]={0x30,0x34,0x38,0x41,0x4f,0x61,0x6f,0x0d,0x11};
20 uchar code cn[]={0xBB,0xB6,0xD3,0xAD,0xBD,0xF8,0xC8,0xEB,0xCE,0xA2,0x0d,
21 0xB4,0xEF,0xCA,0xC0,0xBD,0xE7,0x1C,0x2E,0x0A,0x0A,0x0d,0x11};
22 /*函数声明部分*/
23 void init();
24 void en_mode1();
25 void en_mode2();
26 void cn_mode();
27 void typebyte(uchar);
28 void en_string(uchar *);
29 void cn_string(uchar *);
30 /*主函数部分*/
31 /*********************************************************************/
32 /*函数名:main()
33 /*功能:主函数
34 /*输入参数:无
35 /*返回值:无
36 /*编写日期:
37 /*最后修改日期:
38 /********************************************************************/
39 void main()
40 {
41 1 init();
42 1 cn_mode();
43 1 cn_string(cn);
44 1 en_mode1();
45 1 en_string(en1);
46 1 en_mode2();
47 1 en_string(en2);
48 1 while(1);
49 1 }
50
51 /*其他函数定义部分*/
52 /*********************************************************************/
53 /*函数名:
54 /*功能:
55 /*输入参数:
C51 COMPILER V6.23a WEIDA2 09/12/2005 21:56:34 PAGE 2
56 /*返回值:
57 /*调用函数:
58 /*被调用函数:
59 /*编写日期:
60 /*最后修改日期:
61 /********************************************************************/
62 void init()
63 {
64 1 typebyte(0x1b);
65 1 typebyte(0x40);
66 1 }
67 /*********************************************************************/
68 /*函数名:
69 /*功能:
70 /*输入参数:
71 /*返回值:
72 /*调用函数:
73 /*被调用函数:
74 /*编写日期:
75 /*最后修改日期:
76 /********************************************************************/
77 void en_mode1()
78 {
79 1 typebyte(0x1c);
80 1 typebyte(0x2e);
81 1 typebyte(0x1b);
82 1 typebyte(0x36);
83 1 }
84 /*********************************************************************/
85 /*函数名:
86 /*功能:
87 /*输入参数:
88 /*返回值:
89 /*调用函数:
90 /*被调用函数:
91 /*编写日期:
92 /*最后修改日期:
93 /********************************************************************/
94 void en_mode2()
95 {
96 1 typebyte(0x1c);
97 1 typebyte(0x2e);
98 1 typebyte(0x1b);
99 1 typebyte(0x37);
100 1 }
101 /*********************************************************************/
102 /*函数名:
103 /*功能:
104 /*输入参数:
105 /*返回值:
106 /*调用函数:
107 /*被调用函数:
108 /*编写日期:
109 /*最后修改日期:
110 /********************************************************************/
111 void cn_mode()
112 {
113 1 typebyte(0x1c);
114 1 typebyte(0x26);
115 1 }
116 /*********************************************************************/
117 /*函数名:
C51 COMPILER V6.23a WEIDA2 09/12/2005 21:56:34 PAGE 3
118 /*功能:
119 /*输入参数:
120 /*返回值:
121 /*调用函数:
122 /*被调用函数:
123 /*编写日期:
124 /*最后修改日期:
125 /********************************************************************/
126 void en_string(uchar *string)
127 {
128 1 while(*string!=0x11)
129 1 {
130 2 typebyte(*string);
131 2 string++;
132 2 }
133 1 }
134 /*********************************************************************/
135 /*函数名:
136 /*功能:
137 /*输入参数:
138 /*返回值:
139 /*调用函数:
140 /*被调用函数:
141 /*编写日期:
142 /*最后修改日期:
143 /********************************************************************/
144 void cn_string(uchar *string)
145 {
146 1 while(*string!=0x11)
147 1 {
148 2 typebyte(*string);
149 2 string++;
150 2 }
151 1 }
152 /*********************************************************************/
153 /*函数名:
154 /*功能:
155 /*输入参数:
156 /*返回值:
157 /*调用函数:
158 /*被调用函数:
159 /*编写日期:
160 /*最后修改日期:
161 /********************************************************************/
162 void typebyte(uchar byte)
163 {
164 1 stb=1;
165 1 busy=1;
166 1 while(busy==1);
167 1 ADDR=byte;
168 1 stb=0;
169 1 stb=1;
170 1 }
171 /********************END********************/
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 192 ----
CONSTANT SIZE = 41 ----
XDATA SIZE = ---- ----
PDATA SIZE = ---- ----
DATA SIZE = ---- 6
C51 COMPILER V6.23a WEIDA2 09/12/2005 21:56:34 PAGE 4
IDATA SIZE = ---- ----
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 + -