📄 main.lst
字号:
C51 COMPILER V7.01 MAIN 03/21/2003 09:31:06 PAGE 1
C51 COMPILER V7.01, COMPILATION OF MODULE MAIN
OBJECT MODULE PLACED IN main.OBJ
COMPILER INVOKED BY: C:\KEIL_V7\C51\BIN\C51.EXE main.c DEBUG OBJECTEXTEND CODE LISTINCLUDE SYMBOLS
stmt level source
1 /*********************************************************************
2 * Copright(c) 2003,广州周立功单片机发展有限公司
3 * All rights reserved.
4 *
5 *文件名称: main.c
6 *文件标识:
7 *摘 要: 主程序, 串口工作在中断方式的接收和发送,可通过串口显示相关信息以及输入信息
8 *
9 *当前版本: V1.0
10 *完成日期: 2003.2.28
11 *
12 *
13 *********************************************************************/
14
15 /**********************************************************************************************/
16 #include "my66x.h" //头文件定义,包含很多用到的宏的定义
1 =1 #include <stdio.h>
1 =2 /*--------------------------------------------------------------------------
2 =2 STDIO.H
3 =2
4 =2 Prototypes for standard I/O functions.
5 =2 Copyright (c) 1988-2001 Keil Elektronik GmbH and Keil Software, Inc.
6 =2 All rights reserved.
7 =2 --------------------------------------------------------------------------*/
8 =2
9 =2 #ifndef EOF
10 =2 #define EOF -1
11 =2 #endif
12 =2
13 =2 #ifndef NULL
14 =2 #define NULL ((void *) 0)
15 =2 #endif
16 =2
17 =2 #ifndef _SIZE_T
18 =2 #define _SIZE_T
19 =2 typedef unsigned int size_t;
20 =2 #endif
21 =2
22 =2 #pragma SAVE
23 =2 #pragma REGPARMS
24 =2 extern char _getkey (void);
25 =2 extern char getchar (void);
26 =2 extern char ungetchar (char);
27 =2 extern char putchar (char);
28 =2 extern int printf (const char *, ...);
29 =2 extern int sprintf (char *, const char *, ...);
30 =2 extern int vprintf (const char *, char *);
31 =2 extern int vsprintf (char *, const char *, char *);
32 =2 extern char *gets (char *, int n);
33 =2 extern int scanf (const char *, ...);
34 =2 extern int sscanf (char *, const char *, ...);
35 =2 extern int puts (const char *);
36 =2
37 =2 #pragma RESTORE
2 =1 #include <ctype.h>
C51 COMPILER V7.01 MAIN 03/21/2003 09:31:06 PAGE 2
1 =2 /*--------------------------------------------------------------------------
2 =2 CTYPE.H
3 =2
4 =2 Prototypes for character functions.
5 =2 Copyright (c) 1988-2001 Keil Elektronik GmbH and Keil Software, Inc.
6 =2 All rights reserved.
7 =2 --------------------------------------------------------------------------*/
8 =2
9 =2 #pragma SAVE
10 =2 #pragma REGPARMS
11 =2 extern bit isalpha (unsigned char);
12 =2 extern bit isalnum (unsigned char);
13 =2 extern bit iscntrl (unsigned char);
14 =2 extern bit isdigit (unsigned char);
15 =2 extern bit isgraph (unsigned char);
16 =2 extern bit isprint (unsigned char);
17 =2 extern bit ispunct (unsigned char);
18 =2 extern bit islower (unsigned char);
19 =2 extern bit isupper (unsigned char);
20 =2 extern bit isspace (unsigned char);
21 =2 extern bit isxdigit (unsigned char);
22 =2 extern unsigned char tolower (unsigned char);
23 =2 extern unsigned char toupper (unsigned char);
24 =2 extern unsigned char toint (unsigned char);
25 =2
26 =2 #define _tolower(c) ( (c)-'A'+'a' )
27 =2 #define _toupper(c) ( (c)-'a'+'A' )
28 =2 #define toascii(c) ( (c) & 0x7F )
29 =2 #pragma RESTORE
3 =1 #include <absacc.h>
1 =2 /*--------------------------------------------------------------------------
2 =2 ABSACC.H
3 =2
4 =2 Direct access to 8051, extended 8051 and Philips 80C51MX memory areas.
5 =2 Copyright (c) 1988-2001 Keil Elektronik GmbH and Keil Software, Inc.
6 =2 All rights reserved.
7 =2 --------------------------------------------------------------------------*/
8 =2
9 =2 #define CBYTE ((unsigned char volatile code *) 0)
10 =2 #define DBYTE ((unsigned char volatile data *) 0)
11 =2 #define PBYTE ((unsigned char volatile pdata *) 0)
12 =2 #define XBYTE ((unsigned char volatile xdata *) 0)
13 =2
14 =2 #define CWORD ((unsigned int volatile code *) 0)
15 =2 #define DWORD ((unsigned int volatile data *) 0)
16 =2 #define PWORD ((unsigned int volatile pdata *) 0)
17 =2 #define XWORD ((unsigned int volatile xdata *) 0)
18 =2
19 =2
20 =2 #ifdef __CX51__
=2 #define FVAR(object, addr) (*((object volatile far *) (addr)))
=2 #define FARRAY(object, base) ((object volatile far *) (base))
=2 #else
24 =2 #define FVAR(object, addr) (*((object volatile far *) ((addr)+0x10000L)))
25 =2 #define FCVAR(object, addr) (*((object const far *) ((addr)+0x810000L)))
26 =2 #define FARRAY(object, base) ((object volatile far *) ((base)+0x10000L))
27 =2 #define FCARRAY(object, base) ((object const far *) ((base)+0x810000L))
28 =2 #endif
4 =1 #include <intrins.h>
1 =2 /*--------------------------------------------------------------------------
2 =2 INTRINS.H
3 =2
C51 COMPILER V7.01 MAIN 03/21/2003 09:31:06 PAGE 3
4 =2 Intrinsic functions for C51.
5 =2 Copyright (c) 1988-2001 Keil Elektronik GmbH and Keil Software, Inc.
6 =2 All rights reserved.
7 =2 --------------------------------------------------------------------------*/
8 =2
9 =2 extern void _nop_ (void);
10 =2 extern bit _testbit_ (bit);
11 =2 extern unsigned char _cror_ (unsigned char, unsigned char);
12 =2 extern unsigned int _iror_ (unsigned int, unsigned char);
13 =2 extern unsigned long _lror_ (unsigned long, unsigned char);
14 =2 extern unsigned char _crol_ (unsigned char, unsigned char);
15 =2 extern unsigned int _irol_ (unsigned int, unsigned char);
16 =2 extern unsigned long _lrol_ (unsigned long, unsigned char);
17 =2 extern unsigned char _chkfloat_(float);
5 =1 #include <math.h>
1 =2 /*--------------------------------------------------------------------------
2 =2 MATH.H
3 =2
4 =2 Prototypes for mathematic functions.
5 =2 Copyright (c) 1988-2001 Keil Elektronik GmbH and Keil Software, Inc.
6 =2 All rights reserved.
7 =2 --------------------------------------------------------------------------*/
8 =2
9 =2 #pragma SAVE
10 =2 #pragma REGPARMS
11 =2 extern char cabs (char val);
12 =2 extern int abs (int val);
13 =2 extern long labs (long val);
14 =2 extern float fabs (float val);
15 =2 extern float sqrt (float val);
16 =2 extern float exp (float val);
17 =2 extern float log (float val);
18 =2 extern float log10 (float val);
19 =2 extern float sin (float val);
20 =2 extern float cos (float val);
21 =2 extern float tan (float val);
22 =2 extern float asin (float val);
23 =2 extern float acos (float val);
24 =2 extern float atan (float val);
25 =2 extern float sinh (float val);
26 =2 extern float cosh (float val);
27 =2 extern float tanh (float val);
28 =2 extern float atan2 (float y, float x);
29 =2
30 =2 extern float ceil (float val);
31 =2 extern float floor (float val);
32 =2 extern float modf (float val, float *n);
33 =2 extern float fmod (float x, float y);
34 =2 extern float pow (float x, float y);
35 =2
36 =2 #pragma RESTORE
6 =1 #include <setjmp.h>
1 =2 /*--------------------------------------------------------------------------
2 =2 SETJMP.H
3 =2
4 =2 Prototypes for longjmp facility.
5 =2 Copyright (c) 1988-2002 Keil Elektronik GmbH and Keil Software, Inc.
6 =2 All rights reserved.
7 =2 --------------------------------------------------------------------------*/
8 =2
9 =2 /* define the buffer type for holding the state information */
10 =2 #ifndef _JMP_BUF_DEFINED
C51 COMPILER V7.01 MAIN 03/21/2003 09:31:06 PAGE 4
11 =2 #ifdef __CX51__
=2 #define _JBLEN 9 /* SP, SPE, ?C_XBP, ?C_IBP, ?C_PBP, RET-ADDR */
=2 #else
14 =2 #define _JBLEN 7 /* RET-ADDR, ?C_XBP, ?C_IBP, ?C_PBP, SP */
15 =2 #endif
16 =2
17 =2 typedef char jmp_buf[_JBLEN];
18 =2 #define _JMP_BUF_DEFINED
19 =2
20 =2 /* function prototypes */
21 =2 extern int setjmp (jmp_buf);
22 =2 extern void longjmp (jmp_buf, int);
23 =2 #endif
24 =2
7 =1 #include <stdarg.h>
1 =2 /*--------------------------------------------------------------------------
2 =2 STDARG.H
3 =2
4 =2 Prototypes for variable argument lists.
5 =2 Copyright (c) 1988-2001 Keil Elektronik GmbH and Keil Software, Inc.
6 =2 All rights reserved.
7 =2 --------------------------------------------------------------------------*/
8 =2
9 =2 #ifndef NULL
=2 #define NULL ((void *) 0)
=2 #endif
12 =2
13 =2 #ifndef _VA_LIST_DEFINED
14 =2 typedef char *va_list;
15 =2 #define _VA_LIST_DEFINED
16 =2 #endif
17 =2
18 =2 #define va_start(ap,v) ap = (va_list)&v + sizeof(v)
19 =2 #define va_arg(ap,t) (((t *)ap)++[0])
20 =2 #define va_end(ap)
8 =1 #include <stdlib.h>
1 =2 /*--------------------------------------------------------------------------
2 =2 STDLIB.H
3 =2
4 =2 Standard functions.
5 =2 Copyright (c) 1988-2001 Keil Elektronik GmbH and Keil Software, Inc.
6 =2 All rights reserved.
7 =2 --------------------------------------------------------------------------*/
8 =2
9 =2 #ifndef _SIZE_T
=2 #define _SIZE_T
=2 typedef unsigned int size_t;
=2 #endif
13 =2
14 =2 #ifndef NULL
=2 #define NULL ((void *) 0L)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -