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

📄 text1.lst

📁 (大杂烩)proteus仿真MCS51一百例
💻 LST
字号:
C51 COMPILER V8.02   TEXT1                                                                 07/08/2006 09:25:25 PAGE 1   


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

line level    source

   1          #include <AT89X52.H>
   2          unsigned char code dispbitcode[]={0xfe,0xfd,0xfb,0xf7,
   3          0xef,0xdf,0xbf,0x7f};
   4          unsigned char code dispcode[]={0x3f,0x06,0x5b,0x4f,0x66,
   5          0x6d,0x7d,0x07,0x7f,0x6f,0x00};
   6          unsigned char dispbuf[8]={10,10,10,10,0,0,0,0};
   7          unsigned char dispcount;
   8          unsigned char getdata;
   9          unsigned int temp;
  10          unsigned char i;
  11          sbit ST=P3^0;
  12          sbit OE=P3^1;
  13          sbit EOC=P3^2;
  14          sbit CLK=P3^3;
  15          void main(void)
  16          {
  17   1      ST=0;
  18   1      OE=0;
  19   1      ET0=1;
  20   1      ET1=1;
  21   1      EA=1;
  22   1      TMOD=0x12;
  23   1      TH0=216;
  24   1      TL0=216;
  25   1      TH1=(65536-4000)/256;
  26   1      TL1=(65536-4000)%256;
  27   1      TR1=1;
  28   1      TR0=1;
  29   1      ST=1;
  30   1      ST=0;
  31   1      while(1)
  32   1      {
  33   2      if(EOC==1)
  34   2      {
  35   3      OE=1;
  36   3      getdata=P0;
  37   3      OE=0;
  38   3      temp=getdata*235;
  39   3      temp=temp/128;
  40   3      i=5;
  41   3      dispbuf[0]=10;
  42   3      dispbuf[1]=10;
  43   3      dispbuf[2]=10;
  44   3      dispbuf[3]=10;
  45   3      dispbuf[4]=10;
  46   3      dispbuf[5]=0;
  47   3      dispbuf[6]=0;
  48   3      dispbuf[7]=0;
  49   3      while(temp/10)
  50   3      {
  51   4      dispbuf[i]=temp%10;
  52   4      temp=temp/10;
  53   4      i++;
  54   4      }
  55   3      dispbuf[i]=temp;
C51 COMPILER V8.02   TEXT1                                                                 07/08/2006 09:25:25 PAGE 2   

  56   3      ST=1;
  57   3      ST=0;
  58   3      }
  59   2      }
  60   1      }
  61          void t0(void) interrupt 1 using 0
  62          {
  63   1      CLK=~CLK;
  64   1      }
  65          void t1(void) interrupt 3 using 0
  66          {
  67   1      TH1=(65536-4000)/256;
  68   1      TL1=(65536-4000)%256;
  69   1      P1=dispcode[dispbuf[dispcount]];
  70   1      P2=dispbitcode[dispcount];
  71   1      if(dispcount==7)
  72   1      {
  73   2      P1=P1 | 0x80;
  74   2      }
  75   1      dispcount++;
  76   1      if(dispcount==8)
  77   1      {
  78   2      dispcount=0;
  79   2      }
  80   1      }


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =    219    ----
   CONSTANT SIZE    =     19    ----
   XDATA SIZE       =   ----    ----
   PDATA SIZE       =   ----    ----
   DATA SIZE        =     13    ----
   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 + -