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

📄 runled.lst

📁 这是51的C程序
💻 LST
📖 第 1 页 / 共 2 页
字号:
C51 COMPILER V7.20   RUNLED                                                                10/14/2008 09:15:39 PAGE 5   

 238   1              else if(P2=0x80)
*** WARNING C276 IN LINE 238 OF RUNLED.C: constant in condition expression
 239   1              {
 240   2                      for(a=a_temp,b=b_temp,c=c_temp;c<10;a++,b++,c++)
 241   2                      {       
 242   3                              INDLms(10);
 243   3                              if(flag==0)
 244   3                              {       goto will_out_runled;}
 245   3                              else
 246   3                              {
 247   4                                      P1=designP[a];
 248   4                                      P0=designP[b];
 249   4                                      P3=designP[c];
 250   4                                      a_temp=a;
 251   4                                      b_temp=b;
 252   4                                      c_temp=c;
 253   4                              }
 254   3                      }
 255   2                      for(a=8,b=9,c=7,d=2;d<8;a++,b++,c++,d++)
 256   2                      {       
 257   3                              INDLms(10);
 258   3                              if(flag==0)
 259   3                              {       goto will_out_runled;}
 260   3                              else
 261   3                              {
 262   4                                      P1=designP[a];
 263   4                                      P0=designP[b];
 264   4                                      P3=designP[c];
 265   4                                      P2=designP[d];
 266   4                                      a_temp=a;
 267   4                                      b_temp=b;
 268   4                                      c_temp=c;
 269   4                                      d_temp=d;
 270   4                              }
 271   3                      }       
 272   2              }
 273   1      
 274   1              else
 275   1              {
 276   2                      for(a=a_temp,b=b_temp,c=c_temp,d=d_temp;d<8;a++,b++,c++,d++)
 277   2                      {       
 278   3                              INDLms(10);
 279   3                              if(flag==0)
 280   3                              {       goto will_out_runled;}
 281   3                              else
 282   3                              {
 283   4                                      P1=designP[a];
 284   4                                      P0=designP[b];
 285   4                                      P3=designP[c];
 286   4                                      P2=designP[d];
 287   4                                      a_temp=a;
 288   4                                      b_temp=b;
 289   4                                      c_temp=c;
 290   4                                      d_temp=d;
 291   4                              }
 292   3                      }       
 293   2              }
 294   1      
 295   1              while(1)
 296   1              {       
 297   2                      for(a=8,b=9,c=7,d=5;d<8;a++,b++,c++,d++)        
 298   2                      {       
C51 COMPILER V7.20   RUNLED                                                                10/14/2008 09:15:39 PAGE 6   

 299   3                              MOTO_OUT=1;
 300   3                              INDLms(180);    
 301   3                              if(flag==0)
 302   3                              {       goto will_out_runled;}
 303   3                              else
 304   3                              {
 305   4                                      P1=designP[a];
 306   4                                      P0=designP[b];
 307   4                                      P3=designP[c];
 308   4                                      P2=designP[d];
 309   4                                      a_temp=a;
 310   4                                      b_temp=b;
 311   4                                      c_temp=c;
 312   4                                      d_temp=d;
 313   4                              }
 314   3                      }
 315   2              }
 316   1              will_out_runled:
 317   1              _nop_();
 318   1      }
 319          
 320          //==============================================================
 321          void out_runled(void)
 322          {       
 323   1              flag=0;
 324   1              if(b==0)
 325   1              {
 326   2                      for(a=a_temp-1;a>0;a--)
 327   2                      {       
 328   3                              norDLms(120);
 329   3                              if(flag==1)
 330   3                              {       goto end_runled;}
 331   3                              else
 332   3                              {
 333   4                                      P1=designP[a];
 334   4                                      MOTO_OUT=!MOTO_OUT;
 335   4                              }
 336   3                      }
 337   2                      goto end_runled;
 338   2              }
 339   1              
 340   1              else if(c==0)
 341   1              {
 342   2                      for(b=b_temp-1,a=a_temp;b>0;b--,a--)
 343   2                      {
 344   3                              norDLms(120);
 345   3                              if(flag==1)
 346   3                              {       goto end_runled;}
 347   3                              else
 348   3                              {
 349   4                                      P1=keeploopP[a];
 350   4                                      P0=designP[b];
 351   4                                      MOTO_OUT=!MOTO_OUT;
 352   4                              }
 353   3                      }
 354   2                      for(a=8;a>0;a--)
 355   2                      {       
 356   3                              norDLms(120);
 357   3                              if(flag==1)
 358   3                              {       goto end_runled;}
 359   3                              else
 360   3                              {
C51 COMPILER V7.20   RUNLED                                                                10/14/2008 09:15:39 PAGE 7   

 361   4                                      P1=designP[a];
 362   4                                      MOTO_OUT=!MOTO_OUT;
 363   4                              }
 364   3                      }
 365   2                      goto end_runled;
 366   2              }
 367   1      
 368   1              else if(d==0)
 369   1              {
 370   2                      for(c=c_temp-1,b=b_temp,a=a_temp;c>0;c--,b--,a--)
 371   2                      {       
 372   3                              norDLms(120);
 373   3                              if(flag==1)
 374   3                              {       goto end_runled;}
 375   3                              else
 376   3                              {
 377   4                                      P1=keeploopP[a];
 378   4                                      P0=keeploopP[b];
 379   4                                      P3=designP[c];
 380   4                                      MOTO_OUT=!MOTO_OUT;
 381   4                              }
 382   3                      }
 383   2                      for(b=8,a=8;b>0;b--,a--)
 384   2                      {       
 385   3                              norDLms(120);
 386   3                              if(flag==1)
 387   3                              {       goto end_runled;}
 388   3                              else
 389   3                              {
 390   4                                      P1=keeploopP[a];
 391   4                                      P0=designP[b];
 392   4                                      MOTO_OUT=!MOTO_OUT;
 393   4                              }
 394   3                      }
 395   2                      for(a=8;a>0;a--)
 396   2                      {       
 397   3                              norDLms(120);
 398   3                              if(flag==1)
 399   3                              {       goto end_runled;}
 400   3                              else
 401   3                              {
 402   4                                      P1=designP[a];
 403   4                                      MOTO_OUT=!MOTO_OUT;
 404   4                              }
 405   3                      }
 406   2                      goto end_runled;
 407   2              }
 408   1      
 409   1              else
 410   1              {
 411   2                      for(d=d_temp-1,c=c_temp,b=b_temp,a=a_temp;d>0;d--,c--,b--,a--)
 412   2                      {       
 413   3                              norDLms(120);
 414   3                              if(flag==1)
 415   3                              {       goto end_runled;}
 416   3                              else
 417   3                              {
 418   4                                      P1=keeploopP[a];
 419   4                                      P0=keeploopP[b];
 420   4                                      P3=keeploopP[c];
 421   4                                      P2=designP[d];
 422   4                                      MOTO_OUT=!MOTO_OUT;
C51 COMPILER V7.20   RUNLED                                                                10/14/2008 09:15:39 PAGE 8   

 423   4                              }
 424   3                      }
 425   2                      for(c=8,b=8,a=7;c>0;c--,b--,a--)
 426   2                      {       
 427   3                              norDLms(120);
 428   3                              if(flag==1)
 429   3                              {       goto end_runled;}
 430   3                              else
 431   3                              {
 432   4                                      P1=keeploopP[a];
 433   4                                      P0=keeploopP[b];
 434   4                                      P3=designP[c];
 435   4                                      MOTO_OUT=!MOTO_OUT;
 436   4                              }
 437   3                      }
 438   2                      for(b=8,a=8;b>0;b--,a--)
 439   2                      {       
 440   3                              norDLms(120);
 441   3                              if(flag==1)
 442   3                              {       goto end_runled;}
 443   3                              else
 444   3                              {
 445   4                                      P1=keeploopP[a];
 446   4                                      P0=designP[b];
 447   4                                      MOTO_OUT=!MOTO_OUT;
 448   4                              }
 449   3                      }
 450   2                      for(a=8;a>0;a--)
 451   2                      {       
 452   3                              norDLms(120);
 453   3                              if(flag==1)
 454   3                              {       goto end_runled;}
 455   3                              else
 456   3                              {
 457   4                                      P1=designP[a];
 458   4                                      MOTO_OUT=!MOTO_OUT;
 459   4                              }
 460   3                      }
 461   2                      goto end_runled;
 462   2              }
 463   1              end_runled:
 464   1              _nop_();
 465   1      }
 466          //=============================================================//
 467          //                                              Main END
 468          //                              P1\P0\P3\P2(P2.0~P2.5) is LED output port
 469          //=============================================================//


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =   1308    ----
   CONSTANT SIZE    =   ----    ----
   XDATA SIZE       =   ----    ----
   PDATA SIZE       =   ----    ----
   DATA SIZE        =     52       4
   IDATA SIZE       =   ----    ----
   BIT SIZE         =      1    ----
END OF MODULE INFORMATION.


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

⌨️ 快捷键说明

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