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

📄 shellfunc.lst

📁 简单Shell命令调试系统开发
💻 LST
字号:
C51 COMPILER V7.02b   SHELLFUNC                                                            01/18/2005 19:37:33 PAGE 1   


C51 COMPILER V7.02b, COMPILATION OF MODULE SHELLFUNC
OBJECT MODULE PLACED IN ShellFunc.OBJ
COMPILER INVOKED BY: D:\Keil\C51\BIN\C51.EXE ShellFunc.c LARGE BROWSE DEBUG OBJECTEXTEND

stmt level    source

   1          #include "shellFunc.h"
   2          #include <reg52.h>
   3          stWORDTABLE WordTable;
   4          unsigned char mDebug;
   5          unsigned int outDebug;
   6          
   7          void Command1 (stWORDTABLE *WordTable) 
   8          {
   9   1              WordTable=WordTable;
  10   1              PrintStr("\n");
  11   1              PrintStr("\tCommand1.\n");
  12   1      
  13   1      }
  14          void Command2 (stWORDTABLE *WordTable) 
  15          {
  16   1              WordTable=WordTable;
  17   1              PrintStr("\n");
  18   1              PrintStr("\tCommand2.\n");
  19   1      }
  20          void Command3 (stWORDTABLE *WordTable) 
  21          {
  22   1              WordTable=WordTable;
  23   1              PrintStr("\n");
  24   1              PrintStr("\tCommand3.\n");
  25   1      }
  26          void Command4 (stWORDTABLE *WordTable) 
  27          {
  28   1              WordTable=WordTable;
  29   1              PrintStr("\n");
  30   1              PrintStr("\tCommand4.\n");
  31   1      }
  32          void Command5 (stWORDTABLE *WordTable) 
  33          {
  34   1              WordTable=WordTable;
  35   1              PrintStr("\n");
  36   1              PrintStr("\tCommand5.\n");
  37   1      }
  38          void Command6 (stWORDTABLE *WordTable) 
  39          {
  40   1              WordTable=WordTable;
  41   1              PrintStr("\n");
  42   1              PrintStr("\tCommand6.\n");
  43   1      }
  44          void Command7 (stWORDTABLE *WordTable) 
  45          {
  46   1              WordTable=WordTable;
  47   1              PrintStr("\n");
  48   1              PrintStr("\tCommand7.\n");
  49   1      }
  50          void ChangeOut (stWORDTABLE *WordTable) 
  51          {
  52   1              WordTable=WordTable;
  53   1      }
  54          
  55          void DisplayHelpMenu(stWORDTABLE *WordTable) //显示帮助采单
C51 COMPILER V7.02b   SHELLFUNC                                                            01/18/2005 19:37:33 PAGE 2   

  56          {
  57   1          WordTable=WordTable;
  58   1      
  59   1              PrintStr("\n");
  60   1              PrintStr("\tcom1      Command1.\n");
  61   1              PrintStr("\tcom2      Command2.\n");
  62   1              PrintStr("\tcom3      Command3.\n");
  63   1              PrintStr("\tcom4      Command4.\n");
  64   1              PrintStr("\tcom5      Command5.\n");
  65   1              PrintStr("\tcom6      Command6.\n");
  66   1              PrintStr("\tcom7      Command7.\n");
  67   1              PrintStr("\tout       Set P0 out data.\n");     
  68   1              PrintStr("\tclose     Exit.(this command is limited here.)\n");
  69   1              PrintStr("\tclr       Clear screen.\n");        
  70   1              PrintStr("\thelp      Display this menu.\n\n");
  71   1              PrintStr("\tdebug     Set debug parameter.\n\n");
  72   1      }
  73          void DebugChange(stWORDTABLE *WordTable) //调试
  74          {
  75   1              if(WordTable->Num==1)
  76   1                      PrintStr("\n\tPlease input New Value!\n\n");
  77   1              else{
  78   2                      if((WordTable->wt[1].Str[0]>='0')&&(WordTable->wt[1].Str[0]<='9'))
  79   2                              mDebug=WordTable->wt[1].Str[0]-'0';
  80   2                      else
  81   2                              {
  82   3                              PrintStr("\n\tValue Error!\n\n");return;
  83   3                              }
  84   2              }
  85   1              PrintStr("mDebug=");
  86   1              PrintByte(mDebug);
  87   1              PrintStr("\n");
  88   1      }
  89          
  90          void DebugOut(stWORDTABLE *WordTable) //调试
  91          {
  92   1          unsigned char i;
  93   1              outDebug=0;
  94   1              if(WordTable->Num==1)
  95   1                      {
  96   2                      PrintStr("\n\tPlease input New Value!\n\n");
  97   2                      return;
  98   2                      }
  99   1              else{
 100   2                      if(WordTable->wt[1].Length>3)
 101   2                          {
 102   3                              PrintStr("\n\tPlease input Correct Value!\n\n");
 103   3                              return ;
 104   3                              }
 105   2                      else
 106   2                              {
 107   3                              for(i=0;i<WordTable->wt[1].Length;i++)
 108   3                                      {
 109   4                                      if(WordTable->wt[1].Str[i]>='0' && WordTable->wt[1].Str[i]<='9')
 110   4                                              outDebug=outDebug+WordTable->wt[1].Str[i]-'0';
 111   4                                      else 
 112   4                                          {
 113   5                                              PrintStr("\n\tPlease input Correct Value!\n\n");
 114   5                                              return ;
 115   5                                              }
 116   4                                      outDebug=outDebug*10;
 117   4                                      }
C51 COMPILER V7.02b   SHELLFUNC                                                            01/18/2005 19:37:33 PAGE 3   

 118   3                              outDebug=outDebug/10;
 119   3                              if(outDebug>255)
 120   3                                      PrintStr("\n\tPlease input Correct Value!\n\n");
 121   3                              else
 122   3                                      {
 123   4                                      i=(unsigned char )outDebug;
 124   4                                      P0=i;
 125   4                                      }
 126   3                              }
 127   2              }
 128   1              PrintStr("outDebug=");
 129   1              PrintByte((unsigned char )outDebug);
 130   1              PrintStr("\n");
 131   1      
 132   1      }


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =    642    ----
   CONSTANT SIZE    =    505    ----
   XDATA SIZE       =     74       7
   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 + -