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

📄 luoju_set.lst

📁 液晶屏显示程序
💻 LST
📖 第 1 页 / 共 2 页
字号:
C51 COMPILER V7.06   LUOJU_SET                                                             02/05/2005 09:08:21 PAGE 1   


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

stmt level    source

   1          #include         <math.h>
   2          #include    <intrins.h>
   3          #include    "function.h"
   4          #include    "val.h"
   5          unsigned char luoju_set[4];
   6          unsigned char chuandong_set[4],gunju_set[4];
   7          unsigned char gunjing_set[4];
   8          unsigned char set_luo;
   9          extern bit up_bit,down_bit,enter_bit;
  10          void display_luoju_set(void)
  11          {
  12   1      
  13   1          unsigned char a[4],b[4],c[4],d[4];   
  14   1      //第一行
  15   1         display_l_word(0,0,luo_code);
  16   1         display_l_word(0,16,ju_code);
  17   1         display_l_word(0,32,she_code);
  18   1         display_l_word(0,48,zhi_code);
  19   1         display_r_byte(0,32,zero_code);
  20   1         display_r_word(0,48,mm_code);   
  21   1              if(set_luo==1) {
  22   2            flash_r_byte(0,0,maohao_code);
  23   2                      if(down_bit){
  24   3                      down_bit=0;
  25   3                      set_luo=5;}
  26   2            a[0]=luoju_set[0];
  27   2                 a[1]=luoju_set[1];
  28   2                 a[2]=luoju_set[2];}
  29   1         else display_r_byte(0,0,maohao_code);
  30   1         if(set_luo==2)  {     
  31   2              flash_r_byte(0,16,&(number_code[a[0]*16]));
  32   2              if(up_bit&&(a[0]<9))  {
  33   3                            up_bit=0;
  34   3                            a[0]=a[0]+1;}
  35   2              if(down_bit&&(a[0]>0))  {
  36   3                            down_bit=0;
  37   3                            a[0]=a[0]-1;}
  38   2                        if(enter_bit)   {
  39   3                        enter_bit=0;
  40   3                        luoju_set[0]=a[0];
  41   3                        set_luo=3;}
  42   2                       }
  43   1           else 
  44   1               {display_r_byte(0,16,&(number_code[luoju_set[0]*16]));
  45   2                                      a[0]=luoju_set[0];}
  46   1         if(set_luo==3)  {     
  47   2              flash_r_byte(0,24,&(number_code[a[1]*16]));
  48   2              if(up_bit&&(a[1]<9))  {
  49   3                            up_bit=0;
  50   3                            a[1]=a[1]+1;}
  51   2              if(down_bit&&(a[1]>0))  {
  52   3                            down_bit=0;
  53   3                            a[1]=a[1]-1;}
  54   2                        if(enter_bit)   {
  55   3                        enter_bit=0;
C51 COMPILER V7.06   LUOJU_SET                                                             02/05/2005 09:08:21 PAGE 2   

  56   3                        luoju_set[1]=a[1];
  57   3                        set_luo=4;}
  58   2                       }
  59   1           else {display_r_byte(0,24,&(number_code[luoju_set[1]*16]));
  60   2                                      a[1]=luoju_set[1];}
  61   1         if (set_luo==4)  {     
  62   2              flash_r_byte(0,40,&(number_code[a[2]*16]));
  63   2              if(up_bit&&(a[2]<9))  {
  64   3                            up_bit=0;
  65   3                            a[2]=a[2]+1;}
  66   2              if(down_bit&&(a[2]>0))  {
  67   3                            down_bit=0;
  68   3                            a[2]=a[2]-1;}
  69   2                        if(enter_bit)   {
  70   3                        enter_bit=0;
  71   3                        luoju_set[2]=a[2];
  72   3                        set_luo=5;}
  73   2                       }
  74   1           else 
  75   1               {display_r_byte(0,40,&(number_code[luoju_set[2]*16]));
  76   2                                                a[2]=luoju_set[2];}
  77   1      //第二行
  78   1         display_l_word(2,0,chuan_code);
  79   1         display_l_word(2,16,dong_code);
  80   1         display_l_word(2,32,bi_code);
  81   1         display_r_byte(2,24,zero_code);
  82   1      //   display_l_word(2,48,zhi_code);
  83   1      //   display_r_word(2,48,mm_code);
  84   1              if(set_luo==5) {
  85   2            flash_r_byte(2,0,maohao_code);
  86   2                      if(down_bit){
  87   3                      down_bit=0;
  88   3                      set_luo=10;}
  89   2                      if(up_bit){
  90   3                      up_bit=0;
  91   3                      set_luo=1;}
  92   2             b[0]=chuandong_set[0];
  93   2                       b[1]=chuandong_set[1];
  94   2                       b[2]=chuandong_set[2];
  95   2                       b[3]=chuandong_set[3];}
  96   1         else display_r_byte(2,0,maohao_code);
  97   1         if(set_luo==6)  {     
  98   2              flash_r_byte(2,8,&(number_code[b[0]*16]));
  99   2              if(up_bit&&(b[0]<9))  {
 100   3                            up_bit=0;
 101   3                            b[0]=b[0]+1;}
 102   2              if(down_bit&&(b[0]>0))  {
 103   3                            down_bit=0;
 104   3                            b[0]=b[0]-1;}
 105   2                        if(enter_bit)   {
 106   3                        enter_bit=0;
 107   3                        chuandong_set[0]=b[0];
 108   3                        set_luo=7;}
 109   2                       }
 110   1           else {display_r_byte(2,8,&(number_code[chuandong_set[0]*16]));
 111   2                                                         b[0]=chuandong_set[0];}
 112   1         if(set_luo==7)  {     
 113   2              flash_r_byte(2,16,&(number_code[b[1]*16]));
 114   2              if(up_bit&&(b[1]<9))  {
 115   3                            up_bit=0;
 116   3                            b[1]=b[1]+1;}
 117   2              if(down_bit&&(b[1]>0))  {
C51 COMPILER V7.06   LUOJU_SET                                                             02/05/2005 09:08:21 PAGE 3   

 118   3                            down_bit=0;
 119   3                            b[1]=b[1]-1;}
 120   2                        if(enter_bit)   {
 121   3                        enter_bit=0;
 122   3                        chuandong_set[1]=b[1];
 123   3                        set_luo=8;}
 124   2                       }
 125   1           else {display_r_byte(2,16,&(number_code[chuandong_set[1]*16]));
 126   2                                        b[1]=chuandong_set[1];}
 127   1         if(set_luo==8)  {     
 128   2              flash_r_byte(2,32,&(number_code[b[2]*16]));
 129   2              if(up_bit&&(b[2]<9))  {
 130   3                            up_bit=0;
 131   3                            b[2]=b[2]+1;}
 132   2              if(down_bit&&(b[2]>0))  {
 133   3                            down_bit=0;
 134   3                            b[2]=b[2]-1;}
 135   2                        if(enter_bit)   {
 136   3                        enter_bit=0;
 137   3                        chuandong_set[2]=b[2];
 138   3                        set_luo=9;}
 139   2                       }
 140   1           else {display_r_byte(2,32,&(number_code[chuandong_set[2]*16]));
 141   2                                          b[2]=chuandong_set[2];}
 142   1         if(set_luo==9)  {     
 143   2              flash_r_byte(2,40,&(number_code[b[3]*16]));
 144   2              if(up_bit&&(b[3]<9))  {
 145   3                            up_bit=0;
 146   3                            b[3]=b[3]+1;}
 147   2              if(down_bit&&(b[3]>0))  {
 148   3                            down_bit=0;
 149   3                            b[3]=b[3]-1;}
 150   2                        if(enter_bit)   {
 151   3                        enter_bit=0;
 152   3                        chuandong_set[3]=b[3];
 153   3                        set_luo=10;}
 154   2                       }
 155   1           else {display_r_byte(2,40,&(number_code[chuandong_set[3]*16]));
 156   2                                         b[3]=chuandong_set[3];}
 157   1      //第三行
 158   1         display_l_word(4,0,gun_code);
 159   1         display_l_word(4,16,ju_code);
 160   1         display_l_word(4,32,she_code);
 161   1         display_l_word(4,48,zhi_code);
 162   1         display_r_byte(4,32,zero_code);

⌨️ 快捷键说明

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