📄 main.lst
字号:
C51 COMPILER V8.02 MAIN 01/07/2009 11:33:16 PAGE 1
C51 COMPILER V8.02, COMPILATION OF MODULE MAIN
OBJECT MODULE PLACED IN main.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE main.c BROWSE DEBUG OBJECTEXTEND
line level source
1 #include "LCD12864.h"
2 #include <STU.h>
3 #include <GB.h>
4 #include <ME04.h>
5 #include <head.h>
6
7
8 /**************************************************************************/
9 TAB tab1[] = "奇迹多功能游戏机";
10 TAB tab2[] = " 科技创造生活 ";
11 TAB tab3[] = " www.qjdz.com ";
12 TAB tab4[] = " made in japan ";
13 uchar code act[4]={0xfe,0xfd,0xfb,0xf7};
14 /**************************************************************************/
15 /**************************************************************************/
16 //延时子程序
17 void delay(unsigned int ms)
18 {
19 1 unsigned char i,j;
20 1 for(; ms; ms--)
21 1 for(i=50; i; i--)
22 1 for(j=10; j; j--);
23 1
24 1 }
25
26 /**************************************************************************/
27 void move(void)
28 {
29 1 int8u i,c1,c2,c3,c4;
30 1 for(i=0; i<16; i++)
31 1 {
32 2 setxy(2,i+32);
33 2 read_d();
34 2 c1 = read_d();
35 2 c2 = read_d();
36 2 c3 = read_d();
37 2 c4 = read_d();
38 2 setxy(3,48+i);
39 2 send_d(c1);
40 2 send_d(c2);
41 2 send_d(c3);
42 2 send_d(c4);
43 2 }
44 1 }
45 /**************************************************************************/
46
47
48 void main()
49 {
50 1 uchar count;
51 1 init_LCD();//初始化12864液晶模块
52 1 clk=1; //74hc573所存引脚
53 1 P0=0xff;
54 1 clk=0;
55 1 fmq=0; //蜂鸣器
C51 COMPILER V8.02 MAIN 01/07/2009 11:33:16 PAGE 2
56 1 clrddram();//清屏
57 1 pho_disp(STU);//显示图片
58 1 delay(1000);//延时
59 1
60 1 while(1)
61 1 { count=0;
62 2 clrddram();//清屏
63 2 count=get_key();//按键处理
64 2 if(count==5)
65 2 {
66 3 //fmq=1;
67 3 clk=1;
68 3 P0=0X00;
69 3 }
70 2
71 2 setcgram(0,GB);//造字功能
72 2 setcgram(1,ME04);
73 2
74 2
75 2 gotoxy(0,0);
76 2 LCD_puts(tab1,16);
77 2
78 2 gotoxy(0,1);
79 2 LCD_puts(tab2,16);
80 2
81 2 gotoxy(0,2);
82 2 LCD_puts(tab3,16);
83 2
84 2 gotoxy(0,3);
85 2 LCD_puts(tab4,16);
86 2
87 2 delay(1000);
88 2 clrddram();//清屏
89 2
90 2 gotoxy(1,1);
91 2 send_d(0);
92 2 send_d(0);
93 2 gotoxy(2,2);
94 2 send_d(0);
95 2 send_d(2);
96 2 delay(1000);
97 2 fmq=1;
98 2 }
99 1 }
100
101 /**************************************************************************/
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 270 ----
CONSTANT SIZE = 1160 ----
XDATA SIZE = ---- ----
PDATA SIZE = ---- ----
DATA SIZE = ---- 5
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 + -