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

📄 password.lst

📁 液晶屏显示程序
💻 LST
字号:
C51 COMPILER V7.06   PASSWORD                                                              02/05/2005 09:08:20 PAGE 1   


C51 COMPILER V7.06, COMPILATION OF MODULE PASSWORD
OBJECT MODULE PLACED IN password.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE password.c BROWSE DEBUG OBJECTEXTEND

stmt level    source

   1          /*#include      <reg52.h>
   2          #include        <ctype.h>
   3          #include        <stdlib.h>
   4          #include        <stdio.h>
   5          #include        <math.h>
   6          #include    <intrins.h>
   7          #include    "function.h"
   8          #include    "val.h"
   9          unsigned char password_set[4],password[4];
  10          extern bit up_bit,down_bit,enter_bit;
  11          bit pass_bit;
  12          extern bit master_bit,clr_bit,dis_pass_bit;
  13          extern bit speed_set_bit;
  14          extern unsigned char set_password; 
  15          
  16          void display_password(void)
  17          {
  18              unsigned char a[3],b[3];
  19                   bit k,l,m,n;
  20          //第一行
  21             display_line(0,0,&(master_one));//第二行
  22             display_l_word(2,0,mi_code);
  23          //   display_l_word(2,16,dao_code);
  24          //   display_l_word(2,32,she_code);
  25             display_l_word(2,48,ma_code);
  26          //   display_r_word(2,48,mm_code);
  27                  if(set_password==1) {
  28                flash_r_byte(2,0,maohao_code);
  29                          if(down_bit){
  30                          down_bit=0;
  31                          set_password=6;}
  32                 a[0]=password[0];
  33                           a[1]=password[1];
  34                           a[2]=password[2];
  35                           a[3]=password[3];}
  36             else display_r_byte(2,0,maohao_code);
  37             if(set_password==2)  {     
  38                  flash_r_byte(2,16,&(number_code[a[0]*16]));
  39                  if(up_bit&&(a[0]<9))  {
  40                                up_bit=0;
  41                                a[0]=a[0]+1;}
  42                  if(down_bit&&(b[0]>0))  {
  43                                down_bit=0;
  44                                a[0]=a[0]-1;}
  45                            if(enter_bit)   {
  46                            enter_bit=0;
  47                            password[0]=a[0];
  48                            set_password=3;}
  49                           }
  50               else display_r_byte(2,16,&(number_code[password[0]*16]));
  51             if(set_password==3)  {     
  52                  flash_r_byte(2,24,&(number_code[a[1]*16]));
  53                  if(up_bit&&(a[1]<9))  {
  54                                up_bit=0;
  55                                a[1]=a[1]+1;}
C51 COMPILER V7.06   PASSWORD                                                              02/05/2005 09:08:20 PAGE 2   

  56                  if(down_bit&&(a[1]>0))  {
  57                                down_bit=0;
  58                                a[1]=a[1]-1;}
  59                            if(enter_bit)   {
  60                            enter_bit=0;
  61                            password[1]=a[1];
  62                            set_password=4;}
  63                           }
  64               else display_r_byte(2,24,&(number_code[password[1]*16]));
  65             if(set_password==4)  {     
  66                  flash_r_byte(2,32,&(number_code[a[2]*16]));
  67                  if(up_bit&&(a[2]<9))  {
  68                                up_bit=0;
  69                                a[2]=a[2]+1;}
  70                  if(down_bit&&(a[2]>0))  {
  71                                down_bit=0;
  72                                a[2]=a[2]-1;}
  73                            if(enter_bit)   {
  74                            enter_bit=0;
  75                            password[2]=a[2];
  76                            set_password=5;}
  77                           }
  78               else display_r_byte(2,32,&(number_code[password[2]*16]));
  79             if(set_password==5)  {     
  80                  flash_r_byte(2,40,&(number_code[a[3]*16]));
  81                  if(up_bit&&(a[3]<9))  {
  82                                up_bit=0;
  83                                a[3]=a[3]+1;}
  84                  if(down_bit&&(a[2]>0))  {
  85                                down_bit=0;
  86                                a[3]=a[3]-1;}
  87                            if(enter_bit)   {
  88                            enter_bit=0;
  89                            password[3]=a[3];
  90                 if((password[0]==0)&&(password[1]==0)&&(password[2]=0)&&(password[3]=0)){
  91                       password_set[0]=0;
  92                       password_set[1]=0;
  93                       password_set[2]=0;
  94                       password_set[3]=0;
  95                                           set_password=6;}
  96                              if(password[0]==password_set[0])       k=1;
  97                    if(password[1]==password_set[1])       l=1;
  98                              if(password[2]==password_set[2])       m=1;
  99                    if(password[3]==password_set[3])       n=1;
 100                                   if(k==1&&l==1&&m==1&&n==1){
 101                                      k=0;
 102                                      l=0;
 103                                      m=0;
 104                                      n=0;
 105                                      pass_bit=1;
 106                       password[0]=0;
 107                       password[1]=0;
 108                       password[2]=0;
 109                       password[3]=0;
 110                                      dis_pass_bit=0;
 111                                      set_password=0;
 112                                 clr_bit=1;
 113                                 speed_set_bit=1;}
 114                              else {
 115                                      k=0;
 116                                      l=0;
 117                                      m=0;
C51 COMPILER V7.06   PASSWORD                                                              02/05/2005 09:08:20 PAGE 3   

 118                                      n=0;
 119                                      pass_bit=0;
 120                       password[0]=0;
 121                       password[1]=0;
 122                       password[2]=0;
 123                       password[3]=0;
 124                                      dis_pass_bit=0;
 125                                      set_password=0;
 126                                 clr_bit=1;
 127                                 master_bit=1;}
 128                                   }
 129                           }
 130               else display_r_byte(2,40,&(number_code[password[3]*16]));
 131          //第三行
 132             display_l_word(4,0,she_code);
 133             display_l_word(4,16,zhi_code);
 134             display_l_word(4,32,mi_code);
 135             display_l_word(4,48,ma_code);
 136          //   display_r_word(2,48,mm_code);
 137            if((password_set[0]==0)&&(password_set[1]==0)&&(password_set[2]=0)&&(password_set[3]=0)){
 138                  if(set_password==6) {
 139                flash_r_byte(4,0,maohao_code);
 140                          if(up_bit){
 141                          up_bit=0;
 142                          set_password=1;}
 143                 b[0]=password_set[0];
 144                           b[1]=password_set[1];
 145                           b[2]=password_set[2];
 146                           b[3]=password_set[3];}
 147             else display_r_byte(4,0,maohao_code);
 148             if(set_password==7)  {     
 149                  flash_r_byte(4,16,&(number_code[b[0]*16]));
 150                  if(up_bit&&(b[0]<9))  {
 151                                up_bit=0;
 152                                b[0]=b[0]+1;}
 153                  if(down_bit&&(b[0]>0))  {
 154                                down_bit=0;
 155                                b[0]=b[0]-1;}
 156                            if(enter_bit)   {
 157                            enter_bit=0;
 158                            password_set[0]=b[0];
 159                            set_password=8;}
 160                           }
 161               else display_r_byte(4,16,&(number_code[8*16]));
 162             if(set_password==8)  {     
 163                  flash_r_byte(4,24,&(number_code[b[1]*16]));
 164                  if(up_bit&&(b[1]<9))  {
 165                                up_bit=0;
 166                                b[1]=b[1]+1;}
 167                  if(down_bit&&(b[1]>0))  {
 168                                down_bit=0;
 169                                b[1]=b[1]-1;}
 170                            if(enter_bit)   {
 171                            enter_bit=0;
 172                            password_set[1]=b[1];
 173                            set_password=9;}
 174                           }
 175               else display_r_byte(4,24,&(number_code[8*16]));
 176             if(set_password==9)  {     
 177                  flash_r_byte(4,32,&(number_code[b[2]*16]));
 178                  if(up_bit&&(b[2]<9))  {
 179                                up_bit=0;
C51 COMPILER V7.06   PASSWORD                                                              02/05/2005 09:08:20 PAGE 4   

 180                                b[2]=b[2]+1;}
 181                  if(down_bit&&(b[2]>0))  {
 182                                down_bit=0;
 183                                b[2]=b[2]-1;}
 184                            if(enter_bit)   {
 185                            enter_bit=0;
 186                            password_set[2]=b[2];
 187                            set_password=10;}
 188                           }
 189               else display_r_byte(4,32,&(number_code[8*16]));
 190             if(set_password==10)  {     
 191                  flash_r_byte(4,40,&(number_code[b[3]*16]));
 192                  if(up_bit&&(b[3]<9))  {
 193                                up_bit=0;
 194                                b[3]=b[3]+1;}
 195                  if(down_bit&&(b[2]>0))  {
 196                                down_bit=0;
 197                                b[3]=b[3]-1;}
 198                            if(enter_bit)   {
 199                            enter_bit=0;
 200                            password_set[3]=b[3];
 201                            set_password=11;}
 202                           }
 203               else display_r_byte(4,40,&(number_code[8*16]));
 204                    }
 205                    
 206          
 207          }*/


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