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

📄 text1.lst

📁 一个超全的仿真程序含C源码,包括1602LED显示,两位共阴数码管显示,ADC0809模块转换,拔码地址开关,18B20温度显示,max485联机通迅,max232串口通迅
💻 LST
字号:
C51 COMPILER V6.12  TEXT1                                                                  03/18/2008 13:36:20 PAGE 1   


C51 COMPILER V6.12, COMPILATION OF MODULE TEXT1
OBJECT MODULE PLACED IN .\Text1.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE .\Text1.c BROWSE DEBUG OBJECTEXTEND

stmt level    source

   1          #include <AT89X51.H>
   2          unsigned char code table[]={0x3f, 0x06, 0x5b, 0x4f, 0x66, 0x6d, 0x7d, 0x07, 0x7f, 0x6f, 0x77, 0x7c, 0x39, 
             -0x5e, 0x79, 0x71};
   3          unsigned char dispcount;
   4          
   5          void delay02s(void)
   6          {
   7   1      unsigned char i,j,k;
   8   1      for(i=20;i>0;i--)
   9   1      for(j=20;j>0;j--)
  10   1      //for(k=248;k>0;k--)
  11   1      ;
  12   1      }
*** WARNING C280 IN LINE 7 OF .\TEXT1.C: 'k': unreferenced local variable
  13          
  14          void main(void)
  15          {
  16   1      P3_7=0;
  17   1       while(1)
  18   1       {
  19   2      
  20   2      // for (dispcount=0;dispcount<10;dispcount++)
  21   2       //{
  22   2        
  23   2      
  24   2        if (P3_3==0 && P3_4==1 && P3_5==1 && P3_6==1 )
  25   2        {  
  26   3          P1_1=0;
  27   3        	 P1_0=1;
  28   3          P2=table[1];
  29   3        } else
  30   2        if (P3_3==1 && P3_4==0 && P3_5==1 && P3_6==1 )
  31   2        {  
  32   3          P1_1=0;
  33   3        	 P1_0=1;
  34   3          P2=table[2];
  35   3        } else
  36   2        if (P3_3==0 && P3_4==0 && P3_5==1 && P3_6==1 )
  37   2        {  
  38   3          P1_1=0;
  39   3      	P1_0=1;
  40   3          P2=table[3];
  41   3        } else
  42   2      
  43   2        if (P3_3==1 && P3_4==1 && P3_5==0 && P3_6==1 )
  44   2        {  
  45   3          P1_1=0;
  46   3      	P1_0=1;
  47   3          P2=table[4];
  48   3        } else
  49   2      
  50   2        if (P3_3==0 && P3_4==1 && P3_5==0 && P3_6==1 )
  51   2        {  
  52   3          P1_1=0;
  53   3      	P1_0=1;
C51 COMPILER V6.12  TEXT1                                                                  03/18/2008 13:36:20 PAGE 2   

  54   3          P2=table[5];
  55   3        } else
  56   2      
  57   2      
  58   2        if (P3_3==1 && P3_4==0 && P3_5==0 && P3_6==1 )
  59   2        {  
  60   3          P1_1=0;
  61   3      	P1_0=1;
  62   3          P2=table[6];
  63   3        } else
  64   2        if (P3_3==0 && P3_4==0 && P3_5==0 && P3_6==1 )
  65   2        {  
  66   3          P1_1=0;
  67   3      	P1_0=1;
  68   3          P2=table[7];
  69   3        } else
  70   2      
  71   2        if (P3_3==1 && P3_4==1 && P3_5==1 && P3_6==0 )
  72   2        {  
  73   3          P1_1=0;
  74   3      	P1_0=1;
  75   3          P2=table[8];
  76   3        } else
  77   2      
  78   2      
  79   2        if (P3_3==0 && P3_4==1 && P3_5==1 && P3_6==0 )
  80   2        {  
  81   3          P1_1=0;
  82   3      	P1_0=1;
  83   3          P2=table[9];
  84   3        } else
  85   2      
  86   2        if (P3_3==1 && P3_4==0 && P3_5==1 && P3_6==0 )
  87   2        {  
  88   3          P1_1=0;
  89   3      	P1_0=1;
  90   3          P2=table[10];
  91   3        } else
  92   2      
  93   2      
  94   2        if (P3_3==0 && P3_4==0 && P3_5==1 && P3_6==0 )
  95   2        {  
  96   3          P1_1=0;
  97   3      	P1_0=1;
  98   3          P2=table[11];
  99   3        } else
 100   2      
 101   2        if (P3_3==1 && P3_4==1 && P3_5==0 && P3_6==0 )
 102   2        {  
 103   3          P1_1=0;
 104   3      	P1_0=1;
 105   3          P2=table[12];
 106   3        } else
 107   2      
 108   2        if (P3_3==0 && P3_4==1 && P3_5==0 && P3_6==0 )
 109   2        {  
 110   3          P1_1=0;
 111   3      	P1_0=1;
 112   3          P2=table[13];
 113   3        } else
 114   2      
 115   2        if (P3_3==1 && P3_4==0 && P3_5==0 && P3_6==0 )
C51 COMPILER V6.12  TEXT1                                                                  03/18/2008 13:36:20 PAGE 3   

 116   2        {  
 117   3          P1_1=0;
 118   3      	P1_0=1;
 119   3          P2=table[14];
 120   3        } else
 121   2      
 122   2        if (P3_3==0 && P3_4==0 && P3_5==0 && P3_6==0 )
 123   2        {  
 124   3          P1_1=0;
 125   3      	P1_0=1;
 126   3          P2=table[15];
 127   3        } else
 128   2      
 129   2      
 130   2        {  
 131   3          P1_1=0;
 132   3      	P1_0=1;
 133   3          P2=table[0];
 134   3        } 
 135   2      
 136   2      /*
 137   2        delay02s() ;
 138   2       if (P1_0==0)
 139   2      	{
 140   2          P1_1=0;
 141   2      	P1_0=1;
 142   2          if (P3_4=0)
 143   2          {P2=table[P3];} 
 144   2      
 145   2      	delay02s();
 146   2          } else
 147   2      	{
 148   2          P1_1=1;
 149   2      	P1_0=0;
 150   2          if (P3_4=0)
 151   2          {P2=table[dispcount]+1;} 
 152   2      	delay02s();
 153   2      	}
 154   2      
 155   2      //  }
 156   2      */
 157   2      
 158   2      
 159   2       }
 160   1      } 


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =    410    ----
   CONSTANT SIZE    =     16    ----
   XDATA SIZE       =   ----    ----
   PDATA SIZE       =   ----    ----
   DATA SIZE        =      1       1
   IDATA SIZE       =   ----    ----
   BIT SIZE         =   ----    ----
END OF MODULE INFORMATION.


C51 COMPILATION COMPLETE.  1 WARNING(S),  0 ERROR(S)

⌨️ 快捷键说明

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