C51 COMPILER V7.20 制表方穇实_謃实票_化 02/16/2008 10:10:00 PAGE 1
C51 COMPILER V7.20, COMPILATION OF MODULE 制表方穇实_謃实票_化
OBJECT MODULE PLACED IN 制表方法实现彩灯变化.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE 制表方法实现彩灯变化.c BROWSE DEBUG OBJECTEXTEND
line level source
1 #include
2 unsigned char code TABLE[]={
3 0xFF,0xE7,0xC3,0x81,0x00, //从中间向两侧点亮
4 0xFF,0xE7,0xC3,0x81,0x00,
5 0xFF,0x7E,0x3C,0x18,0x00, //从两侧向中间点亮
6 0xFF,0x7E,0x3C,0x18,0x00,
7 0xFE,0xFD,0xFB,0xF7,0xEF,0xDF,0xBF,0x7F,//左移动控制
8 0xFE,0xFD,0xFB,0xF7,0xEF,0xDF,0xBF,0x7F,
9 0x7F,0xBF,0xDF,0xEF,0xF7,0xFB,0xFD,0xFE,//DK TQFC RPRM
10 0x7F,0xBF,0xDF,0xEF,0xF7,0xFB,0xFD,0xFE,
11 0x00,0xFF,0x00,0xFF, //UW IQI RPRM
12 0x01}; //结束
13 unsigned char i; //声明无符号字符变量i
14
15 DELAY()
16 {
17 1 unsigned int s; //fnjr s o fq twkg gkih gajf yojg
18 1 for(s=0;s 19 1 }
20
21 main()
22 {
23 1 while(1)
24 1 {
25 2 if(TABLE[i]!=0x01) //bc dcg i tfgf 0x01 jf,rvtf if() mw r ygk qkd
26 2 {
27 3 P1=TABLE[i]; //ww P1 kkkk lwbm
28 3 i++; //uxhp lk (lk 1)
29 3 DELAY(); //ymet thjf bib ovt DELAY()
30 3 }
31 2
32 2 else //bc dcg tfgf 0x01 jf ,rvtf "i=0"ygk qkd
33 2 {
34 3 i=0; //tgus gavc trgg
35 3 }
36 2 }
37 1 }
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 40 ----
CONSTANT SIZE = 57 ----
XDATA SIZE = ---- ----
PDATA SIZE = ---- ----
DATA SIZE = 1 ----
IDATA SIZE = ---- ----
BIT SIZE = ---- ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)