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

📄 var.lst

📁 这是铁路各工区
💻 LST
📖 第 1 页 / 共 2 页
字号:
C51 COMPILER V6.12  VAR                                                                    11/29/2007 10:34:25 PAGE 1   


C51 COMPILER V6.12, COMPILATION OF MODULE VAR
OBJECT MODULE PLACED IN F:\YUN\安全牌\安全牌C\VAR.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE F:\YUN\安全牌\安全牌C\VAR.C DB SB OE

stmt level    source

   1          #include "fun.h"
   2          /***************MAIN.C***************/
   3          bdata uchar flag;
   4          sbit flag_int0=flag^0;
   5          sbit flag_frame=flag^1;
   6          sbit flag_key=flag^2;
   7          sbit flag_change=flag^3;
   8          
   9          data uchar num_t1; 
  10          data uint last_id; 
  11          data uchar hp;
  12          data uchar lp;
  13          /************************数据格式***************************/
  14          //sd2300api中的时间数据格式
  15          data struct bcd1_time
  16                 {uchar year,month,day;
  17                  uchar week;
  18                  uchar hour,minute,second;
  19                 }bcd1_realtime;
  20          //时间十进制格式
  21          data struct binary_time
  22                 {uchar year,month,day;
  23                  uchar hour,minute,second;
  24                 }binary_realtime;
  25          //bc728x中的时间数据格式
  26          data struct bcd2_time
  27                 {uchar yearh,yearl,monthh,monthl,dayh,dayl;
  28                  uchar hourh,hourl,minuteh,minutel,secondh,secondl;
  29                 }bcd2_realtime;
  30          
  31          //BC728X中的数据格式
  32          data struct bcd
  33                 {uchar yearh,yearl,monthh,monthl,dayh,dayl;
  34                  uchar days[5];
  35                 }bcd_24wcxx;
  36          
  37          //24WCXX中的十进制数据格式
  38          data struct binary
  39                 {uchar year,month,day;
  40                  ulong days;
  41                 }binary_24wcxx;
  42          
  43          //KEY.C
  44          union
  45          {ulong lf;
  46           struct
  47           {uint f1,f2;}sf;
  48          }data frame;
  49          /*********************每月天数*************************/
  50          //闰年的2月有29天,平年2月只有28天
  51          //闰年的条件:年份数year能被4整除,但不能被100整除;
  52          //            或者年份数year能被400整除
  53          //year%4==0&&year%100!=0||year%400==0;//真为闰年29,假为平年28
  54          //year%4==0//因为2000~2099,
  55          uchar code daytab[2][13]=
C51 COMPILER V6.12  VAR                                                                    11/29/2007 10:34:25 PAGE 2   

  56           {
  57            {0,31,28,31,30,31,30,31,31,30,31,30,31},  //平年
  58            {0,31,29,31,30,31,30,31,31,30,31,30,31}   //润年
  59           };
  60          /**********************地址格式***************************/
  61          //24WCXX内部地址
  62          uchar code addrtab[29]=
  63          {0x00,
  64           0x08,0x10,0x18,0x20,0x28,0x30,0x38,
  65           0x40,0x48,0x50,0x58,0x60,0x68,0x70,
  66           0x78,0x80,0x88,0x90,0x98,0xa0,0xa8,
  67           0xb0,0xb8,0xc0,0xc8,0xd0,0xd8,0xe0
  68          };
  69          /*uint code addrtab[29]={0x00,
  70                                 0x0010,0x0020,0x0030,0x0040,0x0050,0x0060,0x0070,
  71                                 0x0080,0x0090,0x00a0,0x00b0,0x00c0,0x00d0,0x00e0,
  72                                 0x00f0,0x0100,0x0110,0x0120,0x0130,0x0140,0x0150,
  73                                 0x0160,0x0170,0x0180,0x0190,0x01a0,0x01b0,0x01c0
  74                                 }; */
  75          //片选BC728X的CLK信号
  76          uchar code clktab[29][12]=
  77          {/*00*/{0xf7,0xf7,0xf7,0xf7,0xf7,0xf7,0xf7,0xf7,0xf7,0xf7,0xf7,0xf7},
  78           /*01*/{0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf6,0xf6,0xf6,0xf6,0xf6},
  79           /*02*/{0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf5,0xf5,0xf5,0xf5,0xf5},
  80           /*03*/{0xff,0xf4,0xf4,0xf4,0xf4,0xf4,0xf4,0xf4,0xf4,0xf4,0xf4,0xf4},
  81           /*04*/{0xff,0xf3,0xf3,0xf3,0xf3,0xf3,0xf3,0xf3,0xf3,0xf3,0xf3,0xf3},
  82           /*05*/{0xff,0xf2,0xf2,0xf2,0xf2,0xf2,0xf2,0xf2,0xf2,0xf2,0xf2,0xf2},
  83           /*06*/{0xff,0xf1,0xf1,0xf1,0xf1,0xf1,0xf1,0xf1,0xf1,0xf1,0xf1,0xf1},
  84           /*07*/{0xff,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0},
  85           /*08*/{0xff,0xf0,0xf0,0xf0,0xf0,0xf0,0xef,0xef,0xef,0xef,0xef,0xef},
  86           /*09*/{0xff,0xef,0xef,0xef,0xef,0xef,0xef,0xef,0xef,0xef,0xef,0xee},
  87           /*10*/{0xff,0xee,0xee,0xee,0xee,0xee,0xee,0xee,0xee,0xee,0xee,0xee},
  88           /*11*/{0xff,0xed,0xed,0xed,0xed,0xed,0xed,0xed,0xed,0xed,0xed,0xed},
  89           /*12*/{0xff,0xed,0xed,0xed,0xed,0xed,0xec,0xec,0xec,0xec,0xec,0xec},
  90           /*13*/{0xff,0xec,0xec,0xec,0xec,0xec,0xec,0xec,0xec,0xec,0xec,0xeb},
  91           /*14*/{0xff,0xeb,0xeb,0xeb,0xeb,0xeb,0xeb,0xeb,0xeb,0xeb,0xeb,0xeb},
  92           /*15*/{0xff,0xea,0xea,0xea,0xea,0xea,0xea,0xea,0xea,0xea,0xea,0xea},
  93           /*16*/{0xff,0xea,0xea,0xea,0xea,0xea,0xe9,0xe9,0xe9,0xe9,0xe9,0xe9},
  94           /*17*/{0xff,0xe9,0xe9,0xe9,0xe9,0xe9,0xe9,0xe9,0xe9,0xe9,0xe9,0xe8},
  95           /*18*/{0xff,0xe8,0xe8,0xe8,0xe8,0xe8,0xe8,0xe8,0xe8,0xe8,0xe8,0xe8},
  96           /*19*/{0xff,0xe7,0xe7,0xe7,0xe7,0xe7,0xe7,0xe7,0xe7,0xe7,0xe7,0xe7},
  97           /*20*/{0xff,0xe7,0xe7,0xe7,0xe7,0xe7,0xe6,0xe6,0xe6,0xe6,0xe6,0xe6},
  98           /*21*/{0xff,0xe6,0xe6,0xe6,0xe6,0xe6,0xe6,0xe6,0xe6,0xe6,0xe6,0xe5},
  99           /*22*/{0xff,0xe5,0xe5,0xe5,0xe5,0xe5,0xe5,0xe5,0xe5,0xe5,0xe5,0xe5},
 100           /*23*/{0xff,0xe4,0xe4,0xe4,0xe4,0xe4,0xe4,0xe4,0xe4,0xe4,0xe4,0xe4},
 101           /*24*/{0xff,0xe4,0xe4,0xe4,0xe4,0xe4,0xe3,0xe3,0xe3,0xe3,0xe3,0xe3},
 102           /*25*/{0xff,0xe3,0xe3,0xe3,0xe3,0xe3,0xe3,0xe3,0xe3,0xe3,0xe3,0xe2},
 103           /*26*/{0xff,0xe2,0xe2,0xe2,0xe2,0xe2,0xe2,0xe2,0xe2,0xe2,0xe2,0xe2},
 104           /*27*/{0xff,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1,0xe1},
 105           /*28*/{0xff,0xe1,0xe1,0xe1,0xe1,0xe1,0xe0,0xe0,0xe0,0xe0,0xe0,0xe0}
 106          };
 107          //BC728X内部寄存器地址
 108          uchar code regtab[29][12]=
 109          {/*00*/{0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b},
 110           /*01*/{0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x00,0x01,0x02,0x03,0x04},
 111           /*02*/{0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x00,0x01,0x02,0x03,0x04},
 112           /*03*/{0xff,0x00,0x01,0x02,0x03,0x04,0x05,0x08,0x09,0x0a,0x0b,0x0c},
 113           /*04*/{0xff,0x00,0x01,0x02,0x03,0x04,0x05,0x08,0x09,0x0a,0x0b,0x0c},
 114           /*05*/{0xff,0x00,0x01,0x02,0x03,0x04,0x05,0x08,0x09,0x0a,0x0b,0x0c},
 115           /*06*/{0xff,0x00,0x01,0x02,0x03,0x04,0x05,0x08,0x09,0x0a,0x0b,0x0c},
 116           /*07*/{0xff,0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a},
 117           /*08*/{0xff,0x0b,0x0c,0x0d,0x0e,0x0f,0x00,0x01,0x02,0x03,0x04,0x05},
C51 COMPILER V6.12  VAR                                                                    11/29/2007 10:34:25 PAGE 3   

 118           /*09*/{0xff,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x00},
 119           /*10*/{0xff,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b},
 120           /*11*/{0xff,0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a},
 121           /*12*/{0xff,0x0b,0x0c,0x0d,0x0e,0x0f,0x00,0x01,0x02,0x03,0x04,0x05},
 122           /*13*/{0xff,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x00},
 123           /*14*/{0xff,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b},
 124           /*15*/{0xff,0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a},
 125           /*16*/{0xff,0x0b,0x0c,0x0d,0x0e,0x0f,0x00,0x01,0x02,0x03,0x04,0x05},
 126           /*17*/{0xff,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x00},
 127           /*18*/{0xff,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b},
 128           /*19*/{0xff,0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a},
 129           /*20*/{0xff,0x0b,0x0c,0x0d,0x0e,0x0f,0x00,0x01,0x02,0x03,0x04,0x05},
 130           /*21*/{0xff,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x00},
 131           /*22*/{0xff,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b},
 132           /*23*/{0xff,0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a},
 133           /*24*/{0xff,0x0b,0x0c,0x0d,0x0e,0x0f,0x00,0x01,0x02,0x03,0x04,0x05},
 134           /*25*/{0xff,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x00},
 135           /*26*/{0xff,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b},
 136           /*27*/{0xff,0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a},
 137           /*28*/{0xff,0x0b,0x0c,0x0d,0x0e,0x0f,0x00,0x01,0x02,0x03,0x04,0x05}
 138          };
C51 COMPILER V6.12  VAR                                                                    11/29/2007 10:34:25 PAGE 4   

NAME                                    CLASS   MSPACE  TYPE    OFFSET  SIZE
====                                    =====   ======  ====    ======  ====


P0 . . . . . . . . . . . . . . . . . .  SFR      DATA   U_CHAR   0080H  1
P1 . . . . . . . . . . . . . . . . . .  SFR      DATA   U_CHAR   0090H  1
P3 . . . . . . . . . . . . . . . . . .  SFR      DATA   U_CHAR   00B0H  1

⌨️ 快捷键说明

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