本文件包含了使用C语言编写单片机的各种入门程序

源代码在线查看: 0--f.m51

软件大小: 549 K
上传用户: scorpioll
关键词: C语言 编写 单片机 程序
下载地址: 免注册下载 普通下载 VIP

相关代码

				BL51 BANKED LINKER/LOCATER V5.03                                                        10/25/2007  19:30:20  PAGE 1
				
				
				BL51 BANKED LINKER/LOCATER V5.03, INVOKED BY:
				G:\PROGRAM FILES\KEILC51\C51\BIN\BL51.EXE STARTUP.obj, 0--f.obj TO 0--f
				
				
				MEMORY MODEL: SMALL
				
				
				INPUT MODULES INCLUDED:
				  STARTUP.obj (?C_STARTUP)
				  0--f.obj (0__F)
				
				
				LINK MAP OF MODULE:  0--f (?C_STARTUP)
				
				
				            TYPE    BASE      LENGTH    RELOCATION   SEGMENT NAME
				            -----------------------------------------------------
				
				            * * * * * * *   D A T A   M E M O R Y   * * * * * * *
				            REG     0000H     0008H     ABSOLUTE     "REG BANK 0"
				            DATA    0008H     0001H     UNIT         _DATA_GROUP_
				            IDATA   0009H     0001H     UNIT         ?STACK
				
				            * * * * * * *   C O D E   M E M O R Y   * * * * * * *
				            CODE    0000H     0003H     ABSOLUTE     
				            CODE    0003H     002FH     UNIT         ?PR?_SHIFT?0__F
				            CODE    0032H     0028H     UNIT         ?PR?_DELAY?0__F
				            CODE    005AH     0024H     UNIT         ?PR?MAIN?0__F
				            CODE    007EH     0010H     UNIT         ?CO?0__F
				            CODE    008EH     000CH     UNIT         ?C_C51STARTUP
				
				
				
				OVERLAY MAP OF MODULE:   0--f (?C_STARTUP)
				
				
				SEGMENT                          DATA_GROUP 
				  +--> CALLED SEGMENT          START    LENGTH
				----------------------------------------------
				?C_C51STARTUP                  -----    -----
				  +--> ?PR?MAIN?0__F
				
				?PR?MAIN?0__F                  0008H    0001H
				  +--> ?PR?_DELAY?0__F
				  +--> ?PR?_SHIFT?0__F
				
				?PR?_DELAY?0__F                -----    -----
				  +--> ?PR?_SHIFT?0__F
				
				?PR?_SHIFT?0__F                -----    -----
				  +--> ?CO?0__F
				
				
				
				SYMBOL TABLE OF MODULE:  0--f (?C_STARTUP)
				
				  VALUE           TYPE          NAME
				  ----------------------------------
				BL51 BANKED LINKER/LOCATER V5.03                                                      10/25/2007  19:30:20  PAGE 2
				
				
				
				  -------         MODULE        ?C_STARTUP
				  C:008EH         SEGMENT       ?C_C51STARTUP
				  I:0009H         SEGMENT       ?STACK
				  C:0000H         PUBLIC        ?C_STARTUP
				  D:00E0H         SYMBOL        ACC
				  D:00F0H         SYMBOL        B
				  D:0083H         SYMBOL        DPH
				  D:0082H         SYMBOL        DPL
				  N:0000H         SYMBOL        IBPSTACK
				  N:0100H         SYMBOL        IBPSTACKTOP
				  N:0080H         SYMBOL        IDATALEN
				  C:0091H         SYMBOL        IDATALOOP
				  N:0000H         SYMBOL        PBPSTACK
				  N:0000H         SYMBOL        PBPSTACKTOP
				  N:0000H         SYMBOL        PDATALEN
				  N:0000H         SYMBOL        PDATASTART
				  N:0000H         SYMBOL        PPAGE
				  N:0000H         SYMBOL        PPAGEENABLE
				  D:00A0H         SYMBOL        PPAGE_SFR
				  D:0081H         SYMBOL        SP
				  C:008EH         SYMBOL        STARTUP1
				  N:0000H         SYMBOL        XBPSTACK
				  N:0000H         SYMBOL        XBPSTACKTOP
				  N:0000H         SYMBOL        XDATALEN
				  N:0000H         SYMBOL        XDATASTART
				  C:0000H         LINE#         92
				  C:008EH         LINE#         99
				  C:0090H         LINE#         100
				  C:0091H         LINE#         101
				  C:0092H         LINE#         102
				  C:0094H         LINE#         151
				  C:0097H         LINE#         155
				  -------         ENDMOD        ?C_STARTUP
				
				  -------         MODULE        0__F
				  C:0000H         SYMBOL        _ICE_DUMMY_
				  D:0080H         PUBLIC        P0
				  C:0003H         PUBLIC        _shift
				  C:005AH         PUBLIC        main
				  C:007EH         PUBLIC        led
				  B:0080H.2       PUBLIC        sda
				  B:0080H.3       PUBLIC        scl
				  C:0039H         PUBLIC        _delay
				  -------         PROC          L?0020
				  -------         ENDPROC       L?0020
				  -------         PROC          _DELAY
				  D:0006H         SYMBOL        i
				  -------         DO            
				  D:0004H         SYMBOL        t
				  -------         ENDDO         
				  C:0039H         LINE#         9
				  C:0039H         LINE#         10
				  C:0039H         LINE#         12
				  C:0044H         LINE#         13
				  C:0059H         LINE#         14
				  -------         ENDPROC       _DELAY
				BL51 BANKED LINKER/LOCATER V5.03                                                      10/25/2007  19:30:20  PAGE 3
				
				
				  -------         PROC          _SHIFT
				  D:0007H         SYMBOL        t
				  -------         DO            
				  D:0006H         SYMBOL        k
				  D:0007H         SYMBOL        led1
				  -------         ENDDO         
				  C:0003H         LINE#         16
				  C:0003H         LINE#         17
				  C:0003H         LINE#         18
				  C:0015H         LINE#         19
				  C:0017H         LINE#         20
				  C:0017H         LINE#         21
				  C:0019H         LINE#         22
				  C:0021H         LINE#         23
				  C:0023H         LINE#         24
				  C:0025H         LINE#         25
				  C:0027H         LINE#         26
				  C:0029H         LINE#         27
				  C:002DH         LINE#         28
				  C:0031H         LINE#         29
				  -------         ENDPROC       _SHIFT
				  -------         PROC          MAIN
				  -------         DO            
				  D:0008H         SYMBOL        j
				  D:0003H         SYMBOL        n
				  -------         ENDDO         
				  C:005AH         LINE#         31
				  C:005AH         LINE#         32
				  C:005AH         LINE#         34
				  C:0061H         LINE#         36
				  C:0066H         LINE#         37
				  C:0068H         LINE#         38
				  C:006BH         LINE#         40
				  C:006DH         LINE#         41
				  C:006DH         LINE#         42
				  C:006FH         LINE#         43
				  C:0074H         LINE#         44
				  C:0076H         LINE#         45
				  C:0079H         LINE#         46
				  C:007DH         LINE#         47
				  -------         ENDPROC       MAIN
				  -------         ENDMOD        0__F
				
				Program Size: data=10.0 xdata=0 code=154
				LINK/LOCATE RUN COMPLETE.  0 WARNING(S),  0 ERROR(S)
							

相关资源