key.LST
上传用户:woden7206
上传日期:2015-11-28
资源大小:14486k
文件大小:5k
源码类别:

单片机开发

开发平台:

MultiPlatform

  1. C51 COMPILER V8.08   KEY                                                                   04/28/2008 13:53:52 PAGE 1   
  2. C51 COMPILER V8.08, COMPILATION OF MODULE KEY
  3. OBJECT MODULE PLACED IN key.OBJ
  4. COMPILER INVOKED BY: C:KeilC51BINC51.EXE key.c BROWSE DEBUG OBJECTEXTEND
  5. line level    source
  6.    1          #include <REG52.h>
  7.    2          #include "KEY.h"
  8.    3          #include"type.h"
  9.    4          
  10.    5          void KEY_delayms(UCHAR t)
  11.    6          {
  12.    7   1              UCHAR i;
  13.    8   1              while(t--)
  14.    9   1              {
  15.   10   2                      for(i=0;i<5;i++);
  16.   11   2      
  17.   12   2              }
  18.   13   1      }
  19.   14          UCHAR keylonely(void)
  20.   15          {
  21.   16   1              UCHAR keyl_dat=0xff;
  22.   17   1              while(1)
  23.   18   1              {
  24.   19   2                      if(0==KEY_0)
  25.   20   2                      {
  26.   21   3                              KEY_delayms(1);
  27.   22   3                              if(0==KEY_0)
  28.   23   3                               {      
  29.   24   4                              //      KEY_delayms(1);
  30.   25   4                              //      if(1==KEYL0)
  31.   26   4                                      while(!KEY_0);
  32.   27   4                              //      {
  33.   28   4                                              keyl_dat=0;
  34.   29   4                                              
  35.   30   4                              //      }
  36.   31   4                               }
  37.   32   3                      }
  38.   33   2                      //************************************
  39.   34   2                      if(0==KEY_1)
  40.   35   2                      {
  41.   36   3                              KEY_delayms(1);
  42.   37   3                              if(0==KEY_1)
  43.   38   3                               {      
  44.   39   4                              //      KEY_delayms(1);
  45.   40   4                              //      if(1==KEYL0)
  46.   41   4                                      while(!KEY_1);
  47.   42   4                              //      {
  48.   43   4                                              keyl_dat=1;
  49.   44   4                                      
  50.   45   4                              //      }
  51.   46   4                       }
  52.   47   3                      }
  53.   48   2                      //*************************************
  54.   49   2                      if(0==KEY_2)
  55.   50   2                      {
  56.   51   3                              KEY_delayms(1);
  57.   52   3                              if(0==KEY_2)
  58.   53   3                               {      
  59.   54   4      //                              KEY_delayms(1);
  60.   55   4      //                              if(1==KEYL2)
  61. C51 COMPILER V8.08   KEY                                                                   04/28/2008 13:53:52 PAGE 2   
  62.   56   4                                      while(!KEY_2);
  63.   57   4      //                              {
  64.   58   4                                              keyl_dat=2;
  65.   59   4                                              
  66.   60   4      //                              }
  67.   61   4                               }
  68.   62   3                      }
  69.   63   2                      //***************************************
  70.   64   2                      if(0==KEY_3)
  71.   65   2                      {
  72.   66   3                              KEY_delayms(1);
  73.   67   3                              if(0==KEY_3)
  74.   68   3                               {      
  75.   69   4      //                              KEY_delayms(1);
  76.   70   4      //                              if(1==KEYL3)
  77.   71   4                                      while(!KEY_3);
  78.   72   4      //                              {
  79.   73   4                                              keyl_dat=3;
  80.   74   4                                      
  81.   75   4      //                              }
  82.   76   4                               }
  83.   77   3                      }
  84.   78   2              return keyl_dat;
  85.   79   2              }
  86.   80   1              
  87.   81   1      
  88.   82   1      }
  89.   83          /*******************************************************************************
  90.   84          ****                              End Of File
  91.   85          *******************************************************************************/
  92. MODULE INFORMATION:   STATIC OVERLAYABLE
  93.    CODE SIZE        =     87    ----
  94.    CONSTANT SIZE    =   ----    ----
  95.    XDATA SIZE       =   ----    ----
  96.    PDATA SIZE       =   ----    ----
  97.    DATA SIZE        =   ----    ----
  98.    IDATA SIZE       =   ----    ----
  99.    BIT SIZE         =   ----    ----
  100. END OF MODULE INFORMATION.
  101. C51 COMPILATION COMPLETE.  0 WARNING(S),  0 ERROR(S)