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

📄 mmm.lst

📁 矿工定位系统单端
💻 LST
📖 第 1 页 / 共 4 页
字号:
 814   4                  if(ttt)
 815   4                  { 
 816   5                       Watch_dog();
 817   5                        Card_id[i]=4;//循环监测的次数
 818   5                       if((i%4)==0)
 819   5                {
 820   6                         if(ttt==0x01)
 821   6                        {
 822   7                                 uuu=RemainRec[i/64][(i%64)/4];
 823   7                                 uuu=uuu|0x01;
 824   7                                 uuu=uuu&0xfd;
 825   7                     RemainRec[i/64][(i%64)/4]=uuu;
 826   7                                }
 827   6                         if(ttt==0x02)
 828   6                           {
 829   7                                 uuu=RemainRec[i/64][(i%64)/4];
 830   7                                 uuu=uuu|0x02;
 831   7                                 uuu=uuu&0xfe;
 832   7                     RemainRec[i/64][(i%64)/4]=uuu;
 833   7                               }
 834   6                        }
 835   5                       if((i%4)==1)
 836   5                {
 837   6                         if(ttt==0x01)
 838   6                        {
 839   7                                 uuu=RemainRec[i/64][(i%64)/4];
 840   7                                 uuu=uuu|0x04;
 841   7                                 uuu=uuu&0xf7;
 842   7                     RemainRec[i/64][(i%64)/4]=uuu;
 843   7                                }
 844   6                         if(ttt==0x02)
 845   6                           {
 846   7                                 uuu=RemainRec[i/64][(i%64)/4];
 847   7                                 uuu=uuu|0x08;
 848   7                                 uuu=uuu&0xfb;
 849   7                     RemainRec[i/64][(i%64)/4]=uuu;
 850   7                               }
 851   6                        }
 852   5                       if((i%4)==2)
 853   5                {
 854   6                         if(ttt==0x01)
 855   6                        {
 856   7                                 uuu=RemainRec[i/64][(i%64)/4];
 857   7                                 uuu=uuu|0x10;
C51 COMPILER V7.05   MMM                                                                   03/01/2002 11:48:58 PAGE 15  

 858   7                                 uuu=uuu&0xdf;
 859   7                     RemainRec[i/64][(i%64)/4]=uuu;
 860   7                                }
 861   6                         if(ttt==0x02)
 862   6                           {
 863   7                                 uuu=RemainRec[i/64][(i%64)/4];
 864   7                                 uuu=uuu|0x20;
 865   7                                 uuu=uuu&0xef;
 866   7                     RemainRec[i/64][(i%64)/4]=uuu;
 867   7                               }
 868   6                        }
 869   5                       if((i%4)==3)
 870   5                {
 871   6                         if(ttt==0x01)
 872   6                        {
 873   7                                 uuu=RemainRec[i/64][(i%64)/4];
 874   7                                 uuu=uuu|0x40;
 875   7                                 uuu=uuu&0x7f;
 876   7                     RemainRec[i/64][(i%64)/4]=uuu;
 877   7                                }
 878   6                         if(ttt==0x02)
 879   6                           {
 880   7                                 uuu=RemainRec[i/64][(i%64)/4];
 881   7                                 uuu=uuu|0x80;
 882   7                                 uuu=uuu&0xbf;
 883   7                     RemainRec[i/64][(i%64)/4]=uuu;
 884   7                               }
 885   6                        }
 886   5                   Test_led=!Test_led;//在区域
 887   5                  }
 888   4                      else                                //不再区域
 889   4                      { 
 890   5                        Watch_dog();
 891   5                 if((i%4)==0)
 892   5                {
 893   6                             uuu=RemainRec[i/64][(i%64)/4];
 894   6                     if(uuu&0x03)             //如果原来就存在
 895   6                      {  
 896   7                         ttt=Find(i);     //再次查找
 897   7                          if(ttt==0)
 898   7                              {
 899   8                                             Card_id[i]--;
 900   8                                                 if( Card_id[i]==0)
 901   8                                                 {
 902   9                              uuu=uuu&0xfc;                 
 903   9                              RemainRec[i/64][(i%64)/4]=uuu;
 904   9                                                 }
 905   8                          }
 906   7                      }
 907   6                     else        //原来就不在
 908   6                      { 
 909   7                                        if(!Waring)              //没有报警信息
 910   7                                        {
 911   8                                     uuu=uuu&0xfc;                     //清零
 912   8                         RemainRec[i/64][(i%64)/4]=uuu;
 913   8                                        }
 914   7                      }
 915   6                                        
 916   6                        }
 917   5                       if((i%4)==1)
 918   5                {
 919   6                        
C51 COMPILER V7.05   MMM                                                                   03/01/2002 11:48:58 PAGE 16  

 920   6                                 uuu=RemainRec[i/64][(i%64)/4];
 921   6                     if(uuu&0x0c) 
 922   6                      {
 923   7                         ttt=Find(i);     //再次查找
 924   7                          if(ttt==0)
 925   7                              {  Card_id[i]--;
 926   8                                                 if( Card_id[i]==0)
 927   8                                                 {
 928   9                              uuu=uuu&0xf3;                 
 929   9                              RemainRec[i/64][(i%64)/4]=uuu;
 930   9                            }
 931   8                          }
 932   7                       }
 933   6                     else
 934   6                     {
 935   7                                   if(!Waring)              //没有报警信息
 936   7                                        {
 937   8                                    uuu=uuu&0xf3;
 938   8                        RemainRec[i/64][(i%64)/4]=uuu;
 939   8                                        }
 940   7                     }
 941   6                               
 942   6                        }
 943   5                       if((i%4)==2)
 944   5                {
 945   6                            Watch_dog();
 946   6                                 uuu=RemainRec[i/64][(i%64)/4];
 947   6                                if(uuu&0x30) 
 948   6                      {
 949   7                         ttt=Find(i);     //再次查找
 950   7                          if(ttt==0)
 951   7                              {  Card_id[i]--;
 952   8                                                 if( Card_id[i]==0)
 953   8                                                 {
 954   9                             uuu=uuu&0xcf;                 
 955   9                             RemainRec[i/64][(i%64)/4]=uuu;
 956   9                             }
 957   8                          }
 958   7                       }
 959   6                                else
 960   6                                {
 961   7                                   if(!Waring)              //没有报警信息
 962   7                                        {
 963   8                                     uuu=uuu&0xcf;
 964   8                         RemainRec[i/64][(i%64)/4]=uuu;
 965   8                                    }
 966   7                                }
 967   6                        }
 968   5                       if((i%4)==3)
 969   5                {
 970   6                             Watch_dog();
 971   6                                 uuu=RemainRec[i/64][(i%64)/4];
 972   6                                 if(uuu&0xc0) 
 973   6                      {
 974   7                         ttt=Find(i);     //再次查找
 975   7                          if(ttt==0)
 976   7                              {  Card_id[i]--;
 977   8                                                 if( Card_id[i]==0)
 978   8                                                 {
 979   9                              uuu=uuu&0x3f;                 
 980   9                              RemainRec[i/64][(i%64)/4]=uuu;
 981   9                             }
C51 COMPILER V7.05   MMM                                                                   03/01/2002 11:48:58 PAGE 17  

 982   8                          }
 983   7                       }
 984   6                                else
 985   6                                {
 986   7                                   if(!Waring)              //没有报警信息
 987   7                                        {
 988   8                                     uuu=uuu&0x3f;
 989   8                         RemainRec[i/64][(i%64)/4]=uuu;
 990   8                                        }
 991   7                                }
 992   6                        }
 993   5                      }
 994   4                }
 995   3                else
 996   3             {  
 997   4                   Watch_dog();
 998   4                    Card_id[i]=4;//循环监测的次数
 999   4                  if((i%4)==0)
1000   4                {
1001   5                         if(ttt==0x01)
1002   5                        {
1003   6                                 uuu=RemainRec[i/64][(i%64)/4];
1004   6                                 uuu=uuu|0x01;
1005   6                                 uuu=uuu&0xfd;
1006   6                     RemainRec[i/64][(i%64)/4]=uuu;
1007   6                                }
1008   5                         if(ttt==0x02)
1009   5                           {
1010   6                                 uuu=RemainRec[i/64][(i%64)/4];
1011   6                                 uuu=uuu|0x02;
1012   6                                 uuu=uuu&0xfe;
1013   6                     RemainRec[i/64][(i%64)/4]=uuu;
1014   6                               }
1015   5                        }
1016   4                        if((i%4)==1)
1017   4                {
1018   5                         if(ttt==0x01)
1019   5                        {
1020   6                                 uuu=RemainRec[i/64][(i%64)/4];
1021   6                                 uuu=uuu|0x04;
1022   6                                 uuu=uuu&0xf7;
1023   6                     RemainRec[i/64][(i%64)/4]=uuu;
1024   6                                }
1025   5                         if(ttt==0x02)
1026   5                           {
1027   6                                 uuu=RemainRec[i/64][(i%64)/4];
1028   6                                 uuu=uuu|0x08;
1029   6                                 uuu=uuu&0xfb;
1030   6                     RemainRec[i/64][(i%64)/4]=uuu;
1031   6                               }
1032   5                        }
1033   4                         if((i%4)==2)
1034   4                {
1035   5                         if(ttt==0x01)
1036   5                        {
1037   6                                 uuu=RemainRec[i/64][(i%64)/4];
1038   6                                 uuu=uuu|0x10;
1039   6                                 uuu=uuu&0xdf;
1040   6                     RemainRec[i/64][(i%64)/4]=uuu;
1041   6                                }
1042   5                         if(ttt==0x02)
1043   5                           {
C51 COMPILER V7.05   MMM                                                                   03/01/2002 11:48:58 PAGE 18  

1044   6                                 uuu=RemainRec[i/64][(i%64)/4];
1045   6                                 uuu=uuu|0x20;
1046   6                                 uuu=uuu&0xef;
1047   6                     RemainRec[i/64][(i%64)/4]=uuu;
1048   6                               }
1049   5                        }
1050   4                         if((i%4)==3)
1051   4                {
1052   5                         if(ttt==0x01)
1053   5                        {
1054   6                                 uuu=RemainRec[i/64][(i%64)/4];
1055   6                                 uuu=uuu|0x40;
1056   6                                 uuu=uuu&0x7f;
1057   6                     RemainRec[i/64][(i%64)/4]=uuu;
1058   6                                }
1059   5                         if(ttt==0x02)
1060   5                           {
1061   6                                 uuu=RemainRec[i/64][(i%64)/4];
1062   6                                 uuu=uuu|0x80;
1063   6                                 uuu=uuu&0xbf;
1064   6                     RemainRec[i/64][(i%64)/4]=uuu;
1065   6                               }
1066   5                        }
1067   4                 Test_led=!Test_led;
1068   4                  Watch_dog();
1069   4             }
1070   3        }
1071   2      }
1072   1      }


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =   3861    ----
   CONSTANT SIZE    =   ----    ----
   XDATA SIZE       =    299    ----
   PDATA SIZE       =   ----    ----
   DATA SIZE        =     25       9
   IDATA SIZE       =      3       8
   BIT SIZE         =      9    ----
END OF MODULE INFORMATION.


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

⌨️ 快捷键说明

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