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

📄 control.lst

📁 程序是基于STC89C58的点阵屏显示程序
💻 LST
字号:
C51 COMPILER V8.02   CONTROL                                                               04/10/2008 10:43:47 PAGE 1   


C51 COMPILER V8.02, COMPILATION OF MODULE CONTROL
OBJECT MODULE PLACED IN .\xiazai\control.obj
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE daima\control.c BROWSE DEBUG OBJECTEXTEND PRINT(.\control.lst) OBJECT(.\xia
                    -zai\control.obj)

line level    source

   1          #include"reg51.h"
   2          extern void Readtodisp_hanzi(unsigned char *hzstr);
   3          extern void write_eight_byte(unsigned char *p,unsigned char ADDRH);
   4          extern unsigned char read_eight_byte(unsigned char *p,unsigned char ADRH);
   5          unsigned char hz_dis[3][8];
   6          
   7          extern unsigned char hz_dis_geshu[3];
   8          extern unsigned char page=0;
   9          extern unsigned char m;
  10          unsigned char xdata hzstring[8];
  11          
  12          unsigned char eprom_geshu=0;
  13          
  14          
  15          void Clear_one_hanzi()
  16          {
  17   1      
  18   1              if(hz_dis_geshu[page]!=0)
  19   1              {       
  20   2                      hz_dis_geshu[page]--;
  21   2                      hz_dis[page][hz_dis_geshu[page]*2]=0xa1;
  22   2                      hz_dis[page][hz_dis_geshu[page]*2+1]=0xa1;              
  23   2                      Readtodisp_hanzi(hz_dis[page]); 
  24   2                      write_eight_byte(hz_dis[page],(0xee+page*2));   
  25   2              }
  26   1      }
  27          
  28          void Pageup()
  29          {
  30   1              if(page!=0)
  31   1                      page--; 
  32   1              Readtodisp_hanzi(hz_dis[page]);
  33   1      }
  34          
  35          void Pagedown()
  36          {
  37   1              if(page<2)
  38   1                      page++;
  39   1              Readtodisp_hanzi(hz_dis[page]);
  40   1      }
  41          
  42          void Save_eprom()
  43          {
  44   1              if(m<=39)
  45   1                      write_eight_byte(hz_dis[page],0x90+m*2);
  46   1                              
  47   1      }
  48          void Read_eprom()
  49          {       
  50   1              if(m<=39)
  51   1              {
  52   2                      eprom_geshu=read_eight_byte(hzstring,0x90+m*2);
  53   2                      Readtodisp_hanzi(hzstring);
  54   2              }
C51 COMPILER V8.02   CONTROL                                                               04/10/2008 10:43:47 PAGE 2   

  55   1      }
  56          
  57          void Choose_eprom()
  58          {
  59   1              unsigned char i=0;
  60   1              hz_dis_geshu[page]=eprom_geshu;
  61   1              for(i=0;i<8;i++)
  62   1                      *(hz_dis[page]+i)=*(hzstring+i);
  63   1              write_eight_byte(hz_dis[page],0x90+m*2);
  64   1          Readtodisp_hanzi(hz_dis[page]);
  65   1      }
  66          
  67          
  68          void Init()
  69          {
  70   1              hz_dis_geshu[0]=read_eight_byte(hz_dis[0],0xee);
  71   1              hz_dis_geshu[1]=read_eight_byte(hz_dis[1],0xf0);
  72   1              page=1;
  73   1              Readtodisp_hanzi(hz_dis[1]);
  74   1              hz_dis_geshu[2]=read_eight_byte(hz_dis[2],0xf2);
  75   1              page=2;
  76   1              Readtodisp_hanzi(hz_dis[2]);
  77   1              page=0;
  78   1              Readtodisp_hanzi(hz_dis[0]);
  79   1      
  80   1      }
  81          
  82          void flash_disply(void)
  83          {
  84   1              EA=0;
  85   1              page=1;
  86   1              Readtodisp_hanzi(hz_dis[1]);
  87   1              page=2;
  88   1              Readtodisp_hanzi(hz_dis[2]);
  89   1              page=0;
  90   1              Readtodisp_hanzi(hz_dis[0]);
  91   1              EA=1;
  92   1      
  93   1      }
  94          
  95          void flash_this_page(void)
  96          {
  97   1              Readtodisp_hanzi(hz_dis[page]); 
  98   1      }
  99          
 100          void begin(void)
 101          {
 102   1              Readtodisp_hanzi("欢迎使用");
 103   1      }


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =    419    ----
   CONSTANT SIZE    =      9    ----
   XDATA SIZE       =      8    ----
   PDATA SIZE       =   ----    ----
   DATA SIZE        =     26    ----
   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 + -