⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 demot.lst

📁 LCD61202驱动程序
💻 LST
📖 第 1 页 / 共 3 页
字号:
C51 COMPILER V4.01,  DEMOT                                                                 15/10/01  13:56:17  PAGE 1   


DOS C51 COMPILER V4.01, COMPILATION OF MODULE DEMOT
OBJECT MODULE PLACED IN F:\C_SOFT\HD61202\VP19264\DEMOT.OBJ
COMPILER INVOKED BY: C:\COMP51\C51.EXE F:\C_SOFT\HD61202\VP19264\DEMOT.C DB SB OE

stmt level    source

   1          #include <reg51.h>
   2          #include <stdio.h>
   3          #include <math.h>
   4          #include <absacc.h>
   5          #include <string.h>
   6          
   7          /*  地址定义  */
   8          #define  cradd1 XBYTE[0x200]
   9          #define  cradd2 XBYTE[0xa00]
  10          #define  cradd3 XBYTE[0x600]
  11          #define  cwadd1 XBYTE[0x000]
  12          #define  cwadd2 XBYTE[0x800]
  13          #define  cwadd3 XBYTE[0x400]
  14          #define  dwadd1 XBYTE[0x100]
  15          #define  dwadd2 XBYTE[0x900]
  16          #define  dwadd3 XBYTE[0x500]
  17          #define  dradd1 XBYTE[0x300]
  18          #define  dradd2 XBYTE[0xb00]
  19          #define  dradd3 XBYTE[0x700]
  20          /*  常量定义  */
  21          #define  display_on    0x3f;
  22          #define  para1         0x40;
  23          #define  start_line0   0xc0;
  24          
  25          unsigned int O_X,O_Y,com,dat1;  /* O_X: 在显示字符时定义为行地址: 0~7
  26                                                  在绘点显示时定义为行地址(0-63)
  27                                             O_Y: 列地址(0~127)
  28                                             com: 指令码寄存器
  29                                             dat1: 数据寄存器     */
  30          unsigned char count1,code_1;
  31          /*  西文字符库定义  */
  32          code unsigned char  CHTAB[96][8]={
  33                                              0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,    /*" "=00H*/
  34                                              0x00,0x00,0x00,0x4F,0x00,0x00,0x00,0x00,    /*"!"=01H*/
  35                                              0x00,0x00,0x07,0x00,0x07,0x00,0x00,0x00,    /*"""=02h*/
  36                                              0x00,0x14,0x7F,0x14,0x7F,0x14,0x00,0x00,    /*"#"=03h*/
  37                                              0x00,0x24,0x2A,0x7F,0x2A,0x12,0x00,0x00,    /*"$"=04h*/
  38                                              0x00,0x23,0x13,0x08,0x64,0x62,0x00,0x00,    /*"%"=05h*/
  39                                              0x00,0x36,0x49,0x55,0x22,0x50,0x00,0x00,    /*"&"=06h*/
  40                                              0x00,0x00,0x05,0x03,0x00,0x00,0x00,0x00,    /*"'"=07h*/
  41                                              0x00,0x00,0x1C,0x22,0x41,0x00,0x00,0x00,    /*"("=08h*/
  42                                              0x00,0x00,0x41,0x22,0x1C,0x00,0x00,0x00,    /*")"=09h*/
  43                                              0x00,0x14,0x08,0x3E,0x08,0x14,0x00,0x00,    /*"*"=0Ah*/
  44                                              0x00,0x08,0x08,0x3E,0x08,0x08,0x00,0x00,    /*"+"=0Bh*/
  45                                              0x00,0x00,0x50,0x30,0x00,0x00,0x00,0x00,    /*";"=0Ch*/
  46                                              0x00,0x08,0x08,0x08,0x08,0x08,0x00,0x00,    /*"-"=0Dh*/
  47                                              0x00,0x00,0x60,0x60,0x00,0x00,0x00,0x00,    /*"."=0Eh*/
  48                                              0x00,0x20,0x10,0x08,0x04,0x02,0x00,0x00,    /*"/"=0Fh*/
  49                                              0x00,0x3E,0x51,0x49,0x45,0x3E,0x00,0x00,    /*"0"=10h*/
  50                                              0x00,0x00,0x42,0x7F,0x40,0x00,0x00,0x00,    /*"1"=11h*/
  51                                              0x00,0x42,0x61,0x51,0x49,0x46,0x00,0x00,    /*"2"=12h*/
  52                                              0x00,0x21,0x41,0x45,0x4B,0x31,0x00,0x00,    /*"3"=13h*/
  53                                              0x00,0x18,0x14,0x12,0x7F,0x10,0x00,0x00,    /*"4"=14h*/
  54                                              0x00,0x27,0x45,0x45,0x45,0x39,0x00,0x00,    /*"5"=15h*/
  55                                              0x00,0x3C,0x4A,0x49,0x49,0x30,0x00,0x00,    /*"6"=16h*/
  56                                              0x00,0x01,0x01,0x79,0x05,0x03,0x00,0x00,    /*"7"=17h*/
  57                                              0x00,0x36,0x49,0x49,0x49,0x36,0x00,0x00,    /*"8"=18h*/
  58                                              0x00,0x06,0x49,0x49,0x29,0x1E,0x00,0x00,    /*"9"=19h*/
  59                                              0x00,0x00,0x36,0x36,0x00,0x00,0x00,0x00,    /*":"=1Ah*/
C51 COMPILER V4.01,  DEMOT                                                                 15/10/01  13:56:17  PAGE 2   

  60                                              0x00,0x00,0x56,0x36,0x00,0x00,0x00,0x00,    /*";"=1Bh*/
  61                                              0x00,0x08,0x14,0x22,0x41,0x00,0x00,0x00,    /*"<"=1Ch*/
  62                                              0x00,0x14,0x14,0x14,0x14,0x14,0x00,0x00,    /*"="=1Dh*/
  63                                              0x00,0x00,0x41,0x22,0x14,0x08,0x00,0x00,    /*">"=1Eh*/
  64                                              0x00,0x02,0x01,0x51,0x09,0x06,0x00,0x00,    /*"?"=1Fh*/
  65                                              0x00,0x32,0x49,0x79,0x41,0x3E,0x00,0x00,    /*"@"=20h*/
  66                                              0x00,0x7E,0x11,0x11,0x11,0x7E,0x00,0x00,    /*"A"=21h*/
  67                                              0x00,0x41,0x7F,0x49,0x49,0x36,0x00,0x00,    /*"B"=22h*/
  68                                              0x00,0x3E,0x41,0x41,0x41,0x22,0x00,0x00,    /*"C"=23h*/
  69                                              0x00,0x41,0x7F,0x41,0x41,0x3E,0x00,0x00,    /*"D"=24h*/
  70                                              0x00,0x7F,0x49,0x49,0x49,0x49,0x00,0x00,    /*"E"=25h*/
  71                                              0x00,0x7F,0x09,0x09,0x09,0x01,0x00,0x00,    /*"F"=26h*/
  72                                              0x00,0x3E,0x41,0x41,0x49,0x7A,0x00,0x00,    /*"G"=27h*/
  73                                              0x00,0x7F,0x08,0x08,0x08,0x7F,0x00,0x00,    /*"h"=28h*/
  74                                              0x00,0x00,0x41,0x7F,0x41,0x00,0x00,0x00,    /*"I"=29h*/
  75                                              0x00,0x20,0x40,0x41,0x3F,0x01,0x00,0x00,    /*"J"=2Ah*/
  76                                              0x00,0x7F,0x08,0x14,0x22,0x41,0x00,0x00,    /*"K"=2Bh*/
  77                                              0x00,0x7F,0x40,0x40,0x40,0x40,0x00,0x00,    /*"L"=2Ch*/
  78                                              0x00,0x7F,0x02,0x0C,0x02,0x7F,0x00,0x00,    /*"M"=2Dh*/
  79                                              0x00,0x7F,0x06,0x08,0x30,0x7F,0x00,0x00,    /*"N"=2Eh*/
  80                                              0x00,0x3E,0x41,0x41,0x41,0x3E,0x00,0x00,    /*"O"=2Fh*/
  81                                              0x00,0x7F,0x09,0x09,0x09,0x06,0x00,0x00,    /*"P"=30h*/
  82                                              0x00,0x3E,0x41,0x51,0x21,0x5E,0x00,0x00,    /*"Q"=31h*/
  83                                              0x00,0x7F,0x09,0x19,0x29,0x46,0x00,0x00,    /*"R"=32h*/
  84                                              0x00,0x26,0x49,0x49,0x49,0x32,0x00,0x00,    /*"S"=33h*/
  85                                              0x00,0x01,0x01,0x7F,0x01,0x01,0x00,0x00,    /*"T"=34h*/
  86                                              0x00,0x3F,0x40,0x40,0x40,0x3F,0x00,0x00,    /*"U"=35h*/
  87                                              0x00,0x1F,0x20,0x40,0x20,0x1F,0x00,0x00,    /*"V"=36h*/
  88                                              0x00,0x7F,0x20,0x18,0x20,0x7F,0x00,0x00,    /*"W"=37h*/
  89                                              0x00,0x63,0x14,0x08,0x14,0x63,0x00,0x00,    /*"X"=38h*/
  90                                              0x00,0x07,0x08,0x70,0x08,0x07,0x00,0x00,    /*"Y"=39h*/
  91                                              0x00,0x61,0x51,0x49,0x45,0x43,0x00,0x00,    /*"Z"=3Ah*/
  92                                              0x00,0x00,0x7F,0x41,0x41,0x00,0x00,0x00,    /*"["=3Bh*/
  93                                              0x00,0x02,0x04,0x08,0x10,0x20,0x00,0x00,    /*"\"=3Ch*/
  94                                              0x00,0x00,0x41,0x41,0x7F,0x00,0x00,0x00,    /*"]"=3Dh*/
  95                                              0x00,0x04,0x02,0x01,0x02,0x04,0x00,0x00,    /*"^"=3Eh*/
  96                                              0x00,0x40,0x40,0x40,0x40,0x40,0x00,0x00,    /*"_"=3Fh*/
  97                                              0x00,0x01,0x02,0x04,0x00,0x00,0x00,0x00,    /*"`"=40h*/
  98                                              0x00,0x20,0x54,0x54,0x54,0x78,0x00,0x00,    /*"a"=41h*/
  99                                              0x00,0x7F,0x48,0x44,0x44,0x38,0x00,0x00,    /*"b"=42h*/
 100                                              0x00,0x38,0x44,0x44,0x44,0x28,0x00,0x00,    /*"c"=43h*/
 101                                              0x00,0x38,0x44,0x44,0x48,0x7F,0x00,0x00,    /*"d"=44h*/
 102                                              0x00,0x38,0x54,0x54,0x54,0x18,0x00,0x00,    /*"e"=45h*/
 103                                              0x00,0x00,0x08,0x7E,0x09,0x02,0x00,0x00,    /*"f"=46h*/
 104                                              0x00,0x0C,0x52,0x52,0x4C,0x3E,0x00,0x00,    /*"g"=47h*/
 105                                              0x00,0x7F,0x08,0x04,0x04,0x78,0x00,0x00,    /*"h"=48h*/
 106                                              0x00,0x00,0x44,0x7D,0x40,0x00,0x00,0x00,    /*"i"=49h*/
 107                                              0x00,0x20,0x40,0x44,0x3D,0x00,0x00,0x00,    /*"j"=4Ah*/
 108                                              0x00,0x00,0x7F,0x10,0x28,0x44,0x00,0x00,    /*"k"=4Bh*/
 109                                              0x00,0x00,0x41,0x7F,0x40,0x00,0x00,0x00,    /*"l"=4Ch*/
 110                                              0x00,0x7C,0x04,0x78,0x04,0x78,0x00,0x00,    /*"m"=4Dh*/
 111                                              0x00,0x7C,0x08,0x04,0x04,0x78,0x00,0x00,    /*"n"=4Eh*/
 112                                              0x00,0x38,0x44,0x44,0x44,0x38,0x00,0x00,    /*"o'=4Fh*/
 113                                              0x00,0x7E,0x0C,0x12,0x12,0x0C,0x00,0x00,    /*"p"=50h*/
 114                                              0x00,0x0C,0x12,0x12,0x0C,0x7E,0x00,0x00,    /*"q"=51h*/
 115                                              0x00,0x7C,0x08,0x04,0x04,0x08,0x00,0x00,    /*"r"=52h*/
 116                                              0x00,0x58,0x54,0x54,0x54,0x64,0x00,0x00,    /*"s"=53h*/
 117                                              0x00,0x04,0x3F,0x44,0x40,0x20,0x00,0x00,    /*"t"=54h*/
 118                                              0x00,0x3C,0x40,0x40,0x3C,0x40,0x00,0x00,    /*"u"=55h*/
 119                                              0x00,0x1C,0x20,0x40,0x20,0x1C,0x00,0x00,    /*"v"=56h*/
 120                                              0x00,0x3C,0x40,0x30,0x40,0x3C,0x00,0x00,    /*"w"=57h*/
 121                                              0x00,0x44,0x28,0x10,0x28,0x44,0x00,0x00,    /*"x"=58h*/
 122                                              0x00,0x1C,0xA0,0xA0,0x90,0x7C,0x00,0x00,    /*"y"=59h*/
 123                                              0x00,0x44,0x64,0x54,0x4C,0x44,0x00,0x00,    /*"z"=5Ah*/
 124                                              0x00,0x00,0x08,0x36,0x41,0x00,0x00,0x00,    /*"{"=5Bh*/
 125                                              0x00,0x00,0x00,0x77,0x00,0x00,0x00,0x00,    /*"|"=5Ch*/
C51 COMPILER V4.01,  DEMOT                                                                 15/10/01  13:56:17  PAGE 3   

 126                                              0x00,0x00,0x41,0x36,0x08,0x00,0x00,0x00,    /*"}"=5Dh*/
 127                                              0x00,0x02,0x01,0x02,0x04,0x02,0x00,0x00,    /*"~"=5Fh*/
 128                                              0x00,0xFF,0xFF,0xFF,0xFF,0xFF,0x00,0x00     /*" "=0x60*/
 129                                              };
 130          
 131          /************************************************************************************************/
 132          /*  中文字符库定义  */
 133           code unsigned char  CCTAB[16][8]={
 134                                             0x82,0x8A,0x92,0xB2,0x02,0xA7,0x92,0x5E,/*蓬90 = 00H*/
 135                                             0x2A,0xAF,0x2A,0x5A,0x4A,0x83,0x82,0x00,
 136                                             0x00,0x80,0x40,0x3F,0x41,0x90,0x95,0x95,
 137                                             0x95,0xFF,0x95,0x95,0x95,0xD0,0x40,0x00,
 138                                             0x80,0x64,0x24,0x24,0x3F,0x24,0xA6,0x64,/*勃90 = 01H*/
 139                                             0x20,0x20,0xFF,0x20,0x20,0xF0,0x20,0x00,
 140                                             0x00,0x08,0x49,0x89,0x7D,0x0B,0x89,0x40,
 141                                             0x30,0x0E,0x41,0x80,0x40,0x3F,0x00,0x00,
 142                                             0x40,0x42,0x44,0xCC,0x00,0x20,0x22,0xE2,/*远90 = 02H*/
 143                                             0x22,0x22,0xE2,0x23,0x32,0x20,0x00,0x00,
 144                                             0x00,0x40,0x20,0x1F,0x20,0x50,0x4C,0x43,
 145                                             0x40,0x40,0x47,0x48,0x48,0x6E,0x20,0x00,
 146                                             0x20,0x20,0x20,0x20,0x20,0x20,0xA0,0x7F,/*大90 = 03H*/
 147                                             0xA0,0x20,0x20,0x20,0x20,0x30,0x20,0x00,
 148                                             0x00,0x40,0x40,0x20,0x10,0x0C,0x03,0x00,
 149                                             0x01,0x06,0x08,0x10,0x20,0x60,0x20,0x00
 150                                             };
 151          
 152                   sbit ACC_7=ACC^7;
 153          
 154          /*************************************/
 155          /*              主程序               */
 156          /*************************************/
 157             void main()
 158                  {
 159   1                 unsigned char a,b,i,j;
 160   1                 INT_1();                    /*  调初始化函数  */
*** WARNING 206 IN LINE 160 OF F:\C_SOFT\HD61202\VP19264\DEMOT.C: 'INT_1': missing function-prototype
 161   1                 CLEAR();                    /*  调清屏函数   */
*** WARNING 206 IN LINE 161 OF F:\C_SOFT\HD61202\VP19264\DEMOT.C: 'CLEAR': missing function-prototype
 162   1      
 163   1                 i=0;                        /*  绘点显示  */
 164   1                 j=0;
 165   1                 com=0xc0;
 166   1                 PR1();
*** WARNING 206 IN LINE 166 OF F:\C_SOFT\HD61202\VP19264\DEMOT.C: 'PR1': missing function-prototype
 167   1                 PR4();
*** WARNING 206 IN LINE 167 OF F:\C_SOFT\HD61202\VP19264\DEMOT.C: 'PR4': missing function-prototype
 168   1                 for(i=0;i<192;)
 169   1                    {
 170   2                       for(j=0;j<64;j++)
 171   2      
 172   2                          {
 173   3                              O_X=i;
 174   3                              O_Y=j;
 175   3                              W_DOT();
*** WARNING 206 IN LINE 175 OF F:\C_SOFT\HD61202\VP19264\DEMOT.C: 'W_DOT': missing function-prototype
 176   3                              i++;
 177   3                          }
 178   2                        if(i==192)
 179   2                           continue;
 180   2                       for(j=64;j>0;j--)
 181   2      
 182   2                          {
 183   3                              O_X=i;
 184   3                              O_Y=j;
 185   3                              W_DOT();
 186   3                              i++;
C51 COMPILER V4.01,  DEMOT                                                                 15/10/01  13:56:17  PAGE 4   

 187   3                          }
 188   2                    }
 189   1      
 190   1                 O_Y=0x00;                  /*  汉字显示  */
 191   1                 O_X=0;
 192   1                 code_1=0x00;
 193   1                 CCW_PR();
*** WARNING 206 IN LINE 193 OF F:\C_SOFT\HD61202\VP19264\DEMOT.C: 'CCW_PR': missing function-prototype
 194   1                 O_Y=0x01;
 195   1                 O_X=0x40;
 196   1                 code_1=0x04;
 197   1                 CCW_PR();
 198   1                 O_Y=0x02;
 199   1                 O_X=0x7a;
 200   1                 code_1=0x08;
 201   1                 CCW_PR();
 202   1                 O_Y=0x03;
 203   1                 O_X=0xb0;
 204   1                 code_1=0x0c;
 205   1                 CCW_PR();
 206   1                 O_Y=0x04;
 207   1                 O_X=0x00;
 208   1                 code_1=0x00;
 209   1                 CCW_PR();
 210   1                 O_Y=0x05;
 211   1                 O_X=0x40;
 212   1                 code_1=0x04;
 213   1                 CCW_PR();
 214   1                 O_Y=0x06;
 215   1                 O_X=0x7f;
 216   1                 code_1=0x08;
 217   1                 CCW_PR();
 218   1                 O_Y=0x07;
 219   1                 O_X=0xb0;
 220   1                 code_1=0x0c;
 221   1                 CCW_PR();
 222   1                 a=0;                        /*  西文显示  */
 223   1                 b=0;
 224   1                 code_1=0;
 225   1         for(i=0;i<96;i++)
 226   1                {
 227   2                 O_Y=a;
 228   2                 O_X=b;
 229   2                 CW_PR();
*** WARNING 206 IN LINE 229 OF F:\C_SOFT\HD61202\VP19264\DEMOT.C: 'CW_PR': missing function-prototype
 230   2                 b=b+8;
 231   2                 code_1++;
 232   2                if(code_1==96)
 233   2                   {
 234   3                   i=0;
 235   3                   code_1=0;
 236   3                   }
 237   2                    if(b==192)
 238   2                      {
 239   3                         a++;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -