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

📄 main.lst

📁 C51源码.其内文件包含spi
💻 LST
📖 第 1 页 / 共 5 页
字号:
 225      =1  sbit AD0LJST   =   ADC0CN ^ 0;      /* ADC 0 RIGHT JUSTIFY DATA BIT              */
 226      =1  
 227      =1  /* SPI0CN F8H */
 228      =1  sbit SPIF     =   SPI0CN ^ 7;       /* SPI 0 INTERRUPT FLAG                     */
 229      =1  sbit WCOL     =   SPI0CN ^ 6;       /* SPI 0 WRITE COLLISION FLAG       */
 230      =1  sbit MODF     =   SPI0CN ^ 5;       /* SPI 0 MODE FAULT FLAG            */
 231      =1  sbit RXOVRN   =   SPI0CN ^ 4;       /* SPI 0 RX OVERRUN FLAG            */
 232      =1  sbit TXBSY    =   SPI0CN ^ 3;       /* SPI 0 TX BUSY FLAG                       */
 233      =1  sbit SLVSEL   =   SPI0CN ^ 2;       /* SPI 0 SLAVE SELECT                       */
 234      =1  sbit MSTEN    =   SPI0CN ^ 1;       /* SPI 0 MASTER ENABLE                      */
 235      =1  sbit SPIEN    =   SPI0CN ^ 0;       /* SPI 0 SPI ENABLE                         */
   2          #include        "absacc.h"
   1      =1  /*--------------------------------------------------------------------------
   2      =1  ABSACC.H
   3      =1  
C51 COMPILER V8.12   MAIN                                                                  04/03/2009 01:00:38 PAGE 5   

   4      =1  Direct access to 8051, extended 8051 and Philips 80C51MX memory areas.
   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 __ABSACC_H__
  10      =1  #define __ABSACC_H__
  11      =1  
  12      =1  #define CBYTE ((unsigned char volatile code  *) 0)
  13      =1  #define DBYTE ((unsigned char volatile data  *) 0)
  14      =1  #define PBYTE ((unsigned char volatile pdata *) 0)
  15      =1  #define XBYTE ((unsigned char volatile xdata *) 0)
  16      =1  
  17      =1  #define CWORD ((unsigned int volatile code  *) 0)
  18      =1  #define DWORD ((unsigned int volatile data  *) 0)
  19      =1  #define PWORD ((unsigned int volatile pdata *) 0)
  20      =1  #define XWORD ((unsigned int volatile xdata *) 0)
  21      =1  
  22      =1  
  23      =1  #ifdef __CX51__
           =1 #define FVAR(object, addr)   (*((object volatile far *) (addr)))
           =1 #define FARRAY(object, base) ((object volatile far *) (base))
           =1 #define FCVAR(object, addr)   (*((object const far *) (addr)))
           =1 #define FCARRAY(object, base) ((object const far *) (base))
           =1 #else
  29      =1  #define FVAR(object, addr)    (*((object volatile far *) ((addr)+0x10000L)))
  30      =1  #define FCVAR(object, addr)   (*((object const far *) ((addr)+0x810000L)))
  31      =1  #define FARRAY(object, base)  ((object volatile far *) ((base)+0x10000L))
  32      =1  #define FCARRAY(object, base) ((object const far *) ((base)+0x810000L))
  33      =1  #endif
  34      =1  
  35      =1  #endif
   3          #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
  13      =1   #define _SIZE_T
  14      =1   typedef unsigned int size_t;
  15      =1  #endif
  16      =1  
  17      =1  #ifndef NULL
  18      =1   #define NULL ((void *) 0L)
  19      =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);
C51 COMPILER V8.12   MAIN                                                                  04/03/2009 01:00:38 PAGE 6   

  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);
  47      =1  extern void *memcpy (void *s1, void *s2, int n);
  48      =1  extern void *memchr (void *s, char val, int n);
  49      =1  extern void *memccpy (void *s1, void *s2, char val, int n);
  50      =1  extern void *memmove (void *s1, void *s2, int n);
  51      =1  extern void *memset  (void *s, char val, int n);
  52      =1  #pragma RESTORE
  53      =1  
  54      =1  #endif
   4          #include        "stdlib.h"
   1      =1  /*--------------------------------------------------------------------------
   2      =1  STDLIB.H
   3      =1  
   4      =1  Standard functions.
   5      =1  Copyright (c) 1988-2005 Keil Elektronik GmbH and Keil Software, Inc.
   6      =1  All rights reserved.
   7      =1  --------------------------------------------------------------------------*/
   8      =1  
   9      =1  #ifndef __STDLIB_H__
  10      =1  #define __STDLIB_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  #ifndef _WCHAR_T_DEFINED_
  22      =1  #define _WCHAR_T_DEFINED_
  23      =1  typedef char wchar_t;
  24      =1  #endif
  25      =1  
  26      =1  
  27      =1  #pragma SAVE
  28      =1  #pragma REGPARMS
  29      =1  
  30      =1  extern int    abs  (int   val);
  31      =1  extern long  labs  (long  val);
  32      =1  
  33      =1  extern float atof (char *s1);
  34      =1  extern long  atol (char *s1);
  35      =1  extern int   atoi (char *s1);
  36      =1  extern int   rand ();
C51 COMPILER V8.12   MAIN                                                                  04/03/2009 01:00:38 PAGE 7   

  37      =1  extern void  srand (int);
  38      =1  
  39      =1  extern float         strtod  (char *, char **);
  40      =1  extern long          strtol  (char *, char **, unsigned char);
  41      =1  extern unsigned long strtoul (char *, char **, unsigned char);
  42      =1  
  43      =1  #define _MALLOC_MEM_    xdata
  44      =1  
  45      =1  extern void init_mempool          (void _MALLOC_MEM_ *p, unsigned int size);
  46      =1  extern void _MALLOC_MEM_ *malloc  (unsigned int size);
  47      =1  extern void free                  (void _MALLOC_MEM_ *p);
  48      =1  extern void _MALLOC_MEM_ *realloc (void _MALLOC_MEM_ *p, unsigned int size);
  49      =1  extern void _MALLOC_MEM_ *calloc  (unsigned int size, unsigned int len);
  50      =1  
  51      =1  #pragma RESTORE
  52      =1  
  53      =1  #endif
   5          #include        "stdio.h"
   1      =1  /*--------------------------------------------------------------------------
   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
           =1  #define NULL ((void *) 0)
           =1 #endif
  19      =1  
  20      =1  #ifndef _SIZE_T
           =1  #define _SIZE_T
           =1  typedef unsigned int size_t;
           =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  
   6          #include        "setjmp.h"
C51 COMPILER V8.12   MAIN                                                                  04/03/2009 01:00:38 PAGE 8   

   1      =1  /*--------------------------------------------------------------------------
   2      =1  SETJMP.H
   3      =1  
   4      =1  Prototypes for longjmp facility.
   5      =1  Copyright (c) 1988-2005 Keil Elektronik GmbH and Keil Software, Inc.
   6      =1  All rights reserved.
   7      =1  --------------------------------------------------------------------------*/
   8      =1  
   9      =1  /* define the buffer type for holding the state information */
  10      =1  #ifndef __SETJMP_H__
  11      =1  #define __SETJMP_H__
  12      =1  
  13      =1   #ifdef __CX51__
           =1   #define _JBLEN        9  /* SP, SPE, ?C_XBP, ?C_IBP, ?C_PBP, RET-ADDR */
           =1  #else
  16      =1    #define _JBLEN        7  /* RET-ADDR, ?C_XBP, ?C_IBP, ?C_PBP, SP */
  17      =1    /* for Dallas 390:          RET-ADDR, ?C_XBP, ?C_IBP, PCX,    SP */
  18      =1   #endif
  19      =1  
  20      =1  typedef  char jmp_buf[_JBLEN];
  21      =1  
  22      =1  /* function prototypes */
  23      =1  extern volatile int  setjmp  (jmp_buf);
  24      =1  extern volatile void longjmp (jmp_buf, int);
  25      =1  #endif
  26      =1  
   7          #include        "intrins.h"
   1      =1  /*--------------------------------------------------------------------------
   2      =1  INTRINS.H
   3      =1  
   4      =1  Intrinsic functions for C51.
   5      =1  Copyright (c) 1988-2004 Keil Elektronik GmbH and Keil Software, Inc.

⌨️ 快捷键说明

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