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

📄 shownum.lst

📁 本人设计的电磁脉冲油泵的控制程序
💻 LST
📖 第 1 页 / 共 2 页
字号:
C51 COMPILER V7.06   SHOWNUM                                                               11/18/2005 22:41:13 PAGE 1   


C51 COMPILER V7.06, COMPILATION OF MODULE SHOWNUM
OBJECT MODULE PLACED IN shownum.OBJ
COMPILER INVOKED BY: d:\Keil\C51\BIN\C51.EXE shownum.c BROWSE DEBUG OBJECTEXTEND CODE LISTINCLUDE

stmt level    source

   1          #include <REG52.H>
   1      =1  /*--------------------------------------------------------------------------
   2      =1  REG52.H
   3      =1  
   4      =1  Header file for generic 80C52 and 80C32 microcontroller.
   5      =1  Copyright (c) 1988-2002 Keil Elektronik GmbH and Keil Software, Inc.
   6      =1  All rights reserved.
   7      =1  --------------------------------------------------------------------------*/
   8      =1  
   9      =1  #ifndef __REG52_H__
  10      =1  #define __REG52_H__
  11      =1  
  12      =1  /*  BYTE Registers  */
  13      =1  sfr P0    = 0x80;
  14      =1  sfr P1    = 0x90;
  15      =1  sfr P2    = 0xA0;
  16      =1  sfr P3    = 0xB0;
  17      =1  sfr PSW   = 0xD0;
  18      =1  sfr ACC   = 0xE0;
  19      =1  sfr B     = 0xF0;
  20      =1  sfr SP    = 0x81;
  21      =1  sfr DPL   = 0x82;
  22      =1  sfr DPH   = 0x83;
  23      =1  sfr PCON  = 0x87;
  24      =1  sfr TCON  = 0x88;
  25      =1  sfr TMOD  = 0x89;
  26      =1  sfr TL0   = 0x8A;
  27      =1  sfr TL1   = 0x8B;
  28      =1  sfr TH0   = 0x8C;
  29      =1  sfr TH1   = 0x8D;
  30      =1  sfr IE    = 0xA8;
  31      =1  sfr IP    = 0xB8;
  32      =1  sfr SCON  = 0x98;
  33      =1  sfr SBUF  = 0x99;
  34      =1  
  35      =1  /*  8052 Extensions  */
  36      =1  sfr T2CON  = 0xC8;
  37      =1  sfr RCAP2L = 0xCA;
  38      =1  sfr RCAP2H = 0xCB;
  39      =1  sfr TL2    = 0xCC;
  40      =1  sfr TH2    = 0xCD;
  41      =1  
  42      =1  
  43      =1  /*  BIT Registers  */
  44      =1  /*  PSW  */
  45      =1  sbit CY    = PSW^7;
  46      =1  sbit AC    = PSW^6;
  47      =1  sbit F0    = PSW^5;
  48      =1  sbit RS1   = PSW^4;
  49      =1  sbit RS0   = PSW^3;
  50      =1  sbit OV    = PSW^2;
  51      =1  sbit P     = PSW^0; //8052 only
  52      =1  
  53      =1  /*  TCON  */
  54      =1  sbit TF1   = TCON^7;
C51 COMPILER V7.06   SHOWNUM                                                               11/18/2005 22:41:13 PAGE 2   

  55      =1  sbit TR1   = TCON^6;
  56      =1  sbit TF0   = TCON^5;
  57      =1  sbit TR0   = TCON^4;
  58      =1  sbit IE1   = TCON^3;
  59      =1  sbit IT1   = TCON^2;
  60      =1  sbit IE0   = TCON^1;
  61      =1  sbit IT0   = TCON^0;
  62      =1  
  63      =1  /*  IE  */
  64      =1  sbit EA    = IE^7;
  65      =1  sbit ET2   = IE^5; //8052 only
  66      =1  sbit ES    = IE^4;
  67      =1  sbit ET1   = IE^3;
  68      =1  sbit EX1   = IE^2;
  69      =1  sbit ET0   = IE^1;
  70      =1  sbit EX0   = IE^0;
  71      =1  
  72      =1  /*  IP  */
  73      =1  sbit PT2   = IP^5;
  74      =1  sbit PS    = IP^4;
  75      =1  sbit PT1   = IP^3;
  76      =1  sbit PX1   = IP^2;
  77      =1  sbit PT0   = IP^1;
  78      =1  sbit PX0   = IP^0;
  79      =1  
  80      =1  /*  P3  */
  81      =1  sbit RD    = P3^7;
  82      =1  sbit WR    = P3^6;
  83      =1  sbit T1    = P3^5;
  84      =1  sbit T0    = P3^4;
  85      =1  sbit INT1  = P3^3;
  86      =1  sbit INT0  = P3^2;
  87      =1  sbit TXD   = P3^1;
  88      =1  sbit RXD   = P3^0;
  89      =1  
  90      =1  /*  SCON  */
  91      =1  sbit SM0   = SCON^7;
  92      =1  sbit SM1   = SCON^6;
  93      =1  sbit SM2   = SCON^5;
  94      =1  sbit REN   = SCON^4;
  95      =1  sbit TB8   = SCON^3;
  96      =1  sbit RB8   = SCON^2;
  97      =1  sbit TI    = SCON^1;
  98      =1  sbit RI    = SCON^0;
  99      =1  
 100      =1  /*  P1  */
 101      =1  sbit T2EX  = P1^1; // 8052 only
 102      =1  sbit T2    = P1^0; // 8052 only
 103      =1               
 104      =1  /*  T2CON  */
 105      =1  sbit TF2    = T2CON^7;
 106      =1  sbit EXF2   = T2CON^6;
 107      =1  sbit RCLK   = T2CON^5;
 108      =1  sbit TCLK   = T2CON^4;
 109      =1  sbit EXEN2  = T2CON^3;
 110      =1  sbit TR2    = T2CON^2;
 111      =1  sbit C_T2   = T2CON^1;
 112      =1  sbit CP_RL2 = T2CON^0;
 113      =1  
 114      =1  #endif
   2          #include<stdio.h>
   1      =1  /*--------------------------------------------------------------------------
C51 COMPILER V7.06   SHOWNUM                                                               11/18/2005 22:41:13 PAGE 3   

   2      =1  STDIO.H
   3      =1  
   4      =1  Prototypes for standard I/O functions.
   5      =1  Copyright (c) 1988-2002 Keil Elektronik GmbH and Keil Software, Inc.
   6      =1  All rights reserved.
   7      =1  --------------------------------------------------------------------------*/
   8      =1  
   9      =1  #ifndef __STDIO_H__
  10      =1  #define __STDIO_H__
  11      =1  
  12      =1  #ifndef EOF
  13      =1   #define EOF -1
  14      =1  #endif
  15      =1  
  16      =1  #ifndef NULL
  17      =1   #define NULL ((void *) 0)
  18      =1  #endif
  19      =1  
  20      =1  #ifndef _SIZE_T
  21      =1   #define _SIZE_T
  22      =1   typedef unsigned int size_t;
  23      =1  #endif
  24      =1  
  25      =1  #pragma SAVE
  26      =1  #pragma REGPARMS
  27      =1  extern char _getkey (void);
  28      =1  extern char getchar (void);
  29      =1  extern char ungetchar (char);
  30      =1  extern char putchar (char);
  31      =1  extern int printf   (const char *, ...);
  32      =1  extern int sprintf  (char *, const char *, ...);
  33      =1  extern int vprintf  (const char *, char *);
  34      =1  extern int vsprintf (char *, const char *, char *);
  35      =1  extern char *gets (char *, int n);
  36      =1  extern int scanf (const char *, ...);
  37      =1  extern int sscanf (char *, const char *, ...);
  38      =1  extern int puts (const char *);
  39      =1  
  40      =1  #pragma RESTORE
  41      =1  
  42      =1  #endif
  43      =1  
   3          #include<intrins.h>
   1      =1  /*--------------------------------------------------------------------------
   2      =1  INTRINS.H
   3      =1  
   4      =1  Intrinsic functions for C51.
   5      =1  Copyright (c) 1988-2002 Keil Elektronik GmbH and Keil Software, Inc.
   6      =1  All rights reserved.
   7      =1  --------------------------------------------------------------------------*/
   8      =1  
   9      =1  #ifndef __INTRINS_H__
  10      =1  #define __INTRINS_H__
  11      =1  
  12      =1  extern void          _nop_     (void);
  13      =1  extern bit           _testbit_ (bit);
  14      =1  extern unsigned char _cror_    (unsigned char, unsigned char);
  15      =1  extern unsigned int  _iror_    (unsigned int,  unsigned char);
  16      =1  extern unsigned long _lror_    (unsigned long, unsigned char);
  17      =1  extern unsigned char _crol_    (unsigned char, unsigned char);
  18      =1  extern unsigned int  _irol_    (unsigned int,  unsigned char);
  19      =1  extern unsigned long _lrol_    (unsigned long, unsigned char);
C51 COMPILER V7.06   SHOWNUM                                                               11/18/2005 22:41:13 PAGE 4   

  20      =1  extern unsigned char _chkfloat_(float);
  21      =1  
  22      =1  #endif
  23      =1  
   4          #include<string.h>
   1      =1  /*--------------------------------------------------------------------------
   2      =1  STRING.H
   3      =1  
   4      =1  String functions.
   5      =1  Copyright (c) 1988-2002 Keil Elektronik GmbH and Keil Software, Inc.
   6      =1  All rights reserved.
   7      =1  --------------------------------------------------------------------------*/
   8      =1  
   9      =1  #ifndef __STRING_H__
  10      =1  #define __STRING_H__
  11      =1  
  12      =1  #ifndef _SIZE_T
           =1  #define _SIZE_T
           =1  typedef unsigned int size_t;
           =1 #endif
  16      =1  
  17      =1  #ifndef NULL
           =1  #define NULL ((void *) 0L)
           =1 #endif
  20      =1  
  21      =1  #pragma SAVE
  22      =1  #pragma REGPARMS
  23      =1  extern char *strcat (char *s1, char *s2);
  24      =1  extern char *strncat (char *s1, char *s2, int n);
  25      =1  
  26      =1  extern char strcmp (char *s1, char *s2);
  27      =1  extern char strncmp (char *s1, char *s2, int n);
  28      =1  
  29      =1  extern char *strcpy (char *s1, char *s2);
  30      =1  extern char *strncpy (char *s1, char *s2, int n);
  31      =1  
  32      =1  extern int strlen (char *);
  33      =1  
  34      =1  extern char *strchr (const char *s, char c);
  35      =1  extern int strpos (const char *s, char c);
  36      =1  extern char *strrchr (const char *s, char c);
  37      =1  extern int strrpos (const char *s, char c);
  38      =1  
  39      =1  extern int strspn (char *s, char *set);
  40      =1  extern int strcspn (char *s, char *set);
  41      =1  extern char *strpbrk (char *s, char *set);
  42      =1  extern char *strrpbrk (char *s, char *set);
  43      =1  extern char *strstr  (char *s, char *sub);
  44      =1  extern char *strtok  (char *str, const char *set);
  45      =1  
  46      =1  extern char memcmp (void *s1, void *s2, int n);

⌨️ 快捷键说明

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