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

📄 yibiao.lst

📁 这是我在我们公司做的C51加油单片机程序
💻 LST
📖 第 1 页 / 共 3 页
字号:
 271   2         balance[3]=flash[13];
 272   2         yx=flash[14];
 273   2         ygmm[0]=flash[15];
 274   2         ygmm[1]=flash[16];
 275   2         yjsb=1;
 276   2         ck_flag=1;
 277   2         goto j311;
 278   2         }
 279   1         pd=0;/*记录密码验证的次数*/
 280   1         zdrenum=0;
 281   1         clear();
 282   1         car_num=0;
 283   1         xs_hhz(0,40,JYS);
 284   1         xs_hhz(2,0,FR);
 285   1         xs_hhz(4,16,ICK);
C51 COMPILER V6.02  YIBIAO                                                                 07/15/2004 11:06:49 PAGE 6   

 286   1         while(1)
 287   1         {
 288   2                 key=getkey();
 289   2                 i=XBYTE[0xc010];
 290   2                 if ((i&0x04)==0x04)
 291   2                 {
 292   3                     card_err_state=use_reset();  /*插卡后,用户卡复位*/
 293   3                     if (card_err_state!=0)
 294   3                     {
 295   4                              clear();
 296   4                              dog();
 297   4                              xs_hhz(2,32,FJYK);
 298   4                              key=0xff;
 299   4                              while(1)
 300   4                              {
 301   5                                      dog();
 302   5                                      jiao=1;
 303   5                                      key=getkey();
 304   5                                      if (key!=0xff)
 305   5                                      {
 306   6                                          out_card();
 307   6                                          goto start;
 308   6                                      }
 309   5                                      xs_time();
 310   5                              }
 311   4                     }
 312   3                     card_err_state=read_use_list(1);/*读第一条记录*/
 313   3                     if (card_err_state!=0)
 314   3                     {
 315   4                             kybc();
 316   4                             goto start;
 317   4                     }
 318   3                     for(i=0;i<12;i++)
 319   3                     {
 320   4                           use_sel_adf_name[i]=uselistfile[i+4];
 321   4                     }
 322   3      
 323   3                     card_err_state=select_pse();/*选择应用*/
 324   3                     if (card_err_state!=0)
 325   3                     {
 326   4                             kybc();
 327   4                             goto start;
 328   4                     }
 329   3                     if (card_init())
 330   3                     {
 331   4                              out_card();
 332   4                              goto start;
 333   4                     }
 334   3                     /*now_time[0]=0x20;
 335   3                     now_time[1]=year;
 336   3                     now_time[2]=month;
 337   3                     now_time[3]=day;
 338   3                     card_time[0]=use_pse_inf[24];
 339   3                     card_time[1]=use_pse_inf[25];
 340   3                     card_time[2]=use_pse_inf[26];
 341   3                     card_time[3]=use_pse_inf[27];*/
 342   3                     //判断卡是否过期
 343   3                     card_err_state=read_use_001b_file();/*读'27'文件*/
 344   3                     if (card_err_state!=0)
 345   3                     {
 346   4                             kybc();
 347   4                             goto start;
C51 COMPILER V6.02  YIBIAO                                                                 07/15/2004 11:06:49 PAGE 7   

 348   4                     }
 349   3                     if (use_pse_inf[12]==0x02)
 350   3                     {
 351   4                            menu_2();  /*插入管理卡*/
 352   4                            out_card();
 353   4                            goto start;
 354   4                     }
 355   3                     if (use_pse_inf[12]!=0x04)
 356   3                     {
 357   4                         clear();
 358   4                         xs_hhz(2,32,FYGK);
 359   4                         while(1)
 360   4                         {
 361   5                              key=getkey();
 362   5                              if (key=='t')
 363   5                              {
 364   6                                 out_card();
 365   6                                 break;
 366   6                              }
 367   5                              xs_time();
 368   5                              jiao=1;
 369   5                         }
 370   4                         goto start;
 371   4                     }
 372   3                     yx=use_001b_file[1];
 373   3                     ygmm[0]=use_001b_file[2];
 374   3                     ygmm[1]=use_001b_file[3];
 375   3                     break;
 376   3                 }
 377   2                 if (key!=0xff)
 378   2                 {
 379   3                      debug=1;
 380   3                      clear();
 381   3                      xs_hhz(2,20,JYJXB);
 382   3                 }
 383   2                 if (debug==1)
 384   2                    dey++;
 385   2                 car_num++;
 386   2                 if (dey>40)
 387   2                 {
 388   3                       clear();
 389   3                       xs_hhz(0,40,JYS);
 390   3                       xs_hhz(2,0,FR);
 391   3                       xs_hhz(4,16,ICK);
 392   3                       debug=0;
 393   3                       dey=0;
 394   3                  }
 395   2                  if ((debug==0)&&(car_num>100))
 396   2                  {
 397   3                     if(car_kk==1)
 398   3                     {
 399   4                              clear();
 400   4                              xs_hhz(0,40,JYS);
 401   4                              xs_hhz(2,0,FR);
 402   4                              xs_hhz(4,16,ICK);
 403   4                              car_kk=0;
 404   4                              car_num=0;
 405   4                     }
 406   3                     else
 407   3                     {
 408   4                              clear();
 409   4                              xs_car();
C51 COMPILER V6.02  YIBIAO                                                                 07/15/2004 11:06:49 PAGE 8   

 410   4                              car_kk=1;
 411   4                              car_num=0;
 412   4                     }
 413   3                  }
 414   2                  xs_time();
 415   2                  dog();
 416   2         }
 417   1        /*验证白名单*/
 418   1         clear();
 419   1         xs_hhz(0,0,ZAXZBMD);
 420   1         xs_hhz(2,0,QSD);
 421   1         search_hb=1;
 422   1         search_result=1;
 423   1         if (!NET)
 424   1            while(1)
 425   1            {
 426   2                      key=getkey();
 427   2                      if (key=='l')
 428   2                         goto start;
 429   2                      xs_time();
 430   2                      if (search_hb==0)
 431   2                      {
 432   3                      if (search_result==0)
 433   3                         break;
 434   3                      if (search_result==1)
 435   3                      {
 436   4                              clear();
 437   4      
 438   4                              search_result=1;
 439   4                              xs_hhz(0,0,CKFBK);
 440   4                              xs_hhz(4,0,ARYJJX);
 441   4                              key=0xff;
 442   4                              while(key==0xff)
 443   4                              {
 444   5                                      key=getkey();
 445   5                                       jiao=1;
 446   5                                      xs_time();
 447   5                              }
 448   4                              out_card();
 449   4                              goto start;
 450   4                      }
 451   3                      }
 452   2           }
 453   1          else
 454   1          {
 455   2               nlist[0]=use_pse_inf[10];
 456   2               nlist[1]=use_pse_inf[11];
 457   2               nlist[2]=use_pse_inf[12];
 458   2               nlist[3]=use_pse_inf[13];
 459   2               nlist[4]=use_pse_inf[14];
 460   2               nlist[5]=use_pse_inf[15];
 461   2               nlist[6]=use_pse_inf[16];
 462   2               nlist[7]=use_pse_inf[17];
 463   2               nlist[8]=use_pse_inf[18];
 464   2               nlist[9]=use_pse_inf[19];
 465   2               i=seeAbout(4);
 466   2               if (veraa[4]==0xff)
 467   2                i=0;
 468   2              //  i=1;
 469   2               if (i==0)
 470   2               {
 471   3                      clear();
C51 COMPILER V6.02  YIBIAO                                                                 07/15/2004 11:06:49 PAGE 9   

 472   3                      xs_hhz(0,0,CKFBK);
 473   3                      xs_hhz(4,0,ARYJJX);
 474   3                      key=0xff;
 475   3                      while(key==0xff)
 476   3                      {
 477   4                            key=getkey();
 478   4                            jiao=1;
 479   4                            xs_time();
 480   4                            dog();
 481   4                      }
 482   3                      out_card();
 483   3                      goto start;
 484   3               }
 485   2          }
 486   1         clear();
 487   1         xs_hhz(2,30,SBDR);
 488   1         while(1)
 489   1         {
 490   2              key=getkey();
 491   2              dog();
 492   2              if (key=='s')
 493   2              goto ok;/*直接按上班键*/
 494   2              if (key=='t')
 495   2              {
 496   3                      out_card();
 497   3                      goto start;
 498   3              }
 499   2              if (key!=0xff)
 500   2                  if (key=='.')
 501   2                  {
 502   3                      while(1)
 503   3                      {
 504   4                            key=getkey();
 505   4                            dog();
 506   4                            if (key=='t')
 507   4                            {
 508   5                                out_card();
 509   5                                goto start;
 510   5                            }
 511   4                            if (key!=0xff)
 512   4                               if (key=='k')
 513   4                                  goto ok;
 514   4                               else
 515   4                               {
 516   5                                  out_card();
 517   5                                  goto start;
 518   5                                }
 519   4                                xs_time();
 520   4                       }
 521   3                  }
 522   2                  else
 523   2                  {
 524   3                      out_card();
 525   3                      goto start;
 526   3                   }
 527   2              xs_time();
 528   2         }
 529   1      ok:
 530   1         clear();
 531   1         xs_hhz(0,0,QSRYGMM);
 532   1      
 533   1         while(1)
C51 COMPILER V6.02  YIBIAO                                                                 07/15/2004 11:06:49 PAGE 10  

 534   1         {
 535   2              i=password(0);
 536   2              if (i==2)
 537   2              {
 538   3                      out_card();
 539   3                      goto start;
 540   3              }
 541   2              if (i==1) /*处理员工密码*/
 542   2              {
 543   3                      clear();
 544   3                      /*处理员工卡密码*/
 545   3                      if (use_001b_file[0]==0)
 546   3                      {
 547   4                              card_err_state=ver_pin1();
 548   4                               if (card_err_state!=0)
 549   4                              {
 550   5                                      kybc();
 551   5                                      goto start;
 552   5                              }
 553   4                      }
 554   3                      else
 555   3                      {
 556   4                              xs_hhz(0,0,SRYGKMM);
 557   4      
 558   4                              for(i=0;i<=2;i++)
 559   4                              {
 560   5      mmws2:
 561   5                                     key=pass_card();
 562   5                                      if (key==2)
 563   5                                      {
 564   6                                              out_card();
 565   6                                              goto start;

⌨️ 快捷键说明

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