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

📄 main.lst

📁 pic 实例源程序 有需要的兄弟久拿走啊 别客气 哈哈 我会继续努力的
💻 LST
字号:
C51 COMPILER V6.23a  MAIN                                                                  11/14/2002 00:32:15 PAGE 1   


C51 COMPILER V6.23a, COMPILATION OF MODULE MAIN
OBJECT MODULE PLACED IN main.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE main.c LARGE DEBUG OBJECTEXTEND

stmt level    source

   1          #include <REG52.H>                /* special function register declarations   */
   2                                            /* for the intended 8051 derivative         */
   3          
   4          #include <stdio.h>                /* prototype declarations for I/O functions */
   5          
   6          #ifdef MONITOR51                         /* Debugging with Monitor-51 needs   */
              char code reserve [3] _at_ 0x23;         /* space for serial interrupt if     */
              #endif                                   /* Stop Exection with Serial Intr.   */
   9                                                   /* is enabled                        */
  10          /*------------------------------------------------
  11          The main C function.  Program execution starts
  12          here after stack initialization.
  13          ------------------------------------------------*/
  14          
  15          #define ON  1
  16          #define OFF 0
  17          
  18          sbit Lamp1=P0^0;
  19          sbit Lamp2=P0^1;
  20          sbit Lamp3=P0^0;
  21          sbit Lamp4=P0^1;
  22          sbit Lamp5=P0^0;
  23          sbit Lamp6=P0^1;
  24          sbit Lamp7=P0^0;
  25          sbit Lamp8=P0^1;
  26          
  27          
  28          void initial();
  29          void delay();
  30          
  31          main()
  32          {
  33   1          initial();
  34   1          delay();
  35   1          while(1)
  36   1          {
  37   2              Lamp1=ON;
  38   2              delay();
  39   2              Lamp1=OFF;
  40   2              delay();
  41   2              
  42   2              Lamp2=ON;
  43   2              delay();
  44   2              Lamp2=OFF;
  45   2              delay();
  46   2              
  47   2              Lamp3=ON;
  48   2              delay();
  49   2              Lamp3=OFF;
  50   2              delay();
  51   2              
  52   2              Lamp4=ON;
  53   2              delay();
  54   2              Lamp4=OFF;
  55   2              delay();
C51 COMPILER V6.23a  MAIN                                                                  11/14/2002 00:32:15 PAGE 2   

  56   2              
  57   2              Lamp5=ON;
  58   2              delay();
  59   2              Lamp5=OFF;
  60   2              delay();
  61   2              
  62   2              Lamp6=ON;
  63   2              delay();
  64   2              Lamp6=OFF;
  65   2              delay();
  66   2              
  67   2              Lamp7=ON;
  68   2              delay();
  69   2              Lamp7=OFF;
  70   2              delay();
  71   2              
  72   2              Lamp8=ON;
  73   2              delay();
  74   2              Lamp8=OFF;
  75   2              delay();
  76   2              
  77   2          }
  78   1      }
  79          
  80          void initial()
  81          {
  82   1          Lamp1=OFF;
  83   1          Lamp2=OFF;
  84   1          Lamp3=OFF;
  85   1          Lamp4=OFF;
  86   1          Lamp5=OFF;
  87   1          Lamp6=OFF;
  88   1          Lamp7=OFF;
  89   1          Lamp8=OFF;
  90   1      }
  91          
  92          void delay()
  93          {
  94   1          int i=0;
  95   1          while(i<10000)i++;
  96   1      }
  97          
  98          


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