嵌入式C语言程序设计——使用MCS-51

源代码在线查看: ex5-2.m51

软件大小: 470 K
上传用户: cdsdccscs
关键词: MCS 51 嵌入式C 语言程序设计
下载地址: 免注册下载 普通下载 VIP

相关代码

				BL51 BANKED LINKER/LOCATER V5.12                                                        09/15/2005  10:08:29  PAGE 1
				
				
				BL51 BANKED LINKER/LOCATER V5.12, INVOKED BY:
				C:\KEIL\C51\BIN\BL51.EXE ex5-2.obj, lcd.obj, delay100us.obj TO ex5-2
				
				
				MEMORY MODEL: SMALL
				
				
				INPUT MODULES INCLUDED:
				  ex5-2.obj (EX5_2)
				  lcd.obj (LCD)
				  delay100us.obj (DELAY100US)
				  C:\KEIL\C51\LIB\C51S.LIB (?C_STARTUP)
				  C:\KEIL\C51\LIB\C51S.LIB (?C?SCDIV)
				  C:\KEIL\C51\LIB\C51S.LIB (?C?CLDPTR)
				
				
				LINK MAP OF MODULE:  ex5-2 (EX5_2)
				
				
				            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     0004H     UNIT         _DATA_GROUP_
				            DATA    000CH     0001H     UNIT         ?DT?_DISPLAY_LCD_NUMBER?LCD
				            IDATA   000DH     0001H     UNIT         ?STACK
				
				            * * * * * * *   C O D E   M E M O R Y   * * * * * * *
				            CODE    0000H     0003H     ABSOLUTE     
				                    0003H     07FDH                  *** GAP ***
				            CODE    0800H     003BH     UNIT         ?C?LIB_CODE
				            CODE    083BH     002DH     UNIT         ?PR?_DISPLAY_LCD_NUMBER?LCD
				            CODE    0868H     0027H     UNIT         ?PR?_DISPLAY_LCD_STRING?LCD
				            CODE    088FH     0025H     UNIT         ?PR?MAIN?EX5_2
				            CODE    08B4H     001DH     UNIT         ?PR?_GOTOXY?LCD
				            CODE    08D1H     001AH     UNIT         ?CO?EX5_2
				            CODE    08EBH     0015H     UNIT         ?PR?INIT_LCD?LCD
				            CODE    0900H     0014H     UNIT         ?PR?_WRITE_LCD_COMMAND?LCD
				            CODE    0914H     0014H     UNIT         ?PR?_WRITE_LCD_DATA?LCD
				            CODE    0928H     000EH     UNIT         ?PR?CLEAR_LCD?LCD
				            CODE    0936H     000CH     UNIT         ?C_C51STARTUP
				            CODE    0942H     000BH     UNIT         ?CO?LCD
				            CODE    094DH     0009H     UNIT         ?PR?_DELAY100US?DELAY100US
				
				
				
				OVERLAY MAP OF MODULE:   ex5-2 (EX5_2)
				
				
				SEGMENT                               DATA_GROUP 
				  +--> CALLED SEGMENT               START    LENGTH
				---------------------------------------------------
				?C_C51STARTUP                       -----    -----
				  +--> ?PR?MAIN?EX5_2
				
				?PR?MAIN?EX5_2                      -----    -----
				  +--> ?PR?INIT_LCD?LCD
				BL51 BANKED LINKER/LOCATER V5.12                                                      09/15/2005  10:08:29  PAGE 2
				
				
				  +--> ?PR?CLEAR_LCD?LCD
				  +--> ?CO?EX5_2
				  +--> ?PR?_DISPLAY_LCD_STRING?LCD
				  +--> ?PR?_GOTOXY?LCD
				
				?PR?INIT_LCD?LCD                    -----    -----
				  +--> ?PR?_WRITE_LCD_COMMAND?LCD
				
				?PR?_WRITE_LCD_COMMAND?LCD          -----    -----
				  +--> ?PR?_DELAY100US?DELAY100US
				
				?PR?_DELAY100US?DELAY100US          000BH    0001H
				
				?PR?CLEAR_LCD?LCD                   -----    -----
				  +--> ?PR?_WRITE_LCD_COMMAND?LCD
				
				?PR?_DISPLAY_LCD_STRING?LCD         0008H    0003H
				  +--> ?PR?_WRITE_LCD_DATA?LCD
				
				?PR?_WRITE_LCD_DATA?LCD             -----    -----
				  +--> ?PR?_DELAY100US?DELAY100US
				
				?PR?_GOTOXY?LCD                     0008H    0002H
				  +--> ?PR?_WRITE_LCD_COMMAND?LCD
				
				
				
				SYMBOL TABLE OF MODULE:  ex5-2 (EX5_2)
				
				  VALUE           TYPE          NAME
				  ----------------------------------
				
				  -------         MODULE        EX5_2
				  C:0000H         SYMBOL        _ICE_DUMMY_
				  C:088FH         PUBLIC        main
				  -------         PROC          MAIN
				  C:088FH         LINE#         12
				  C:088FH         LINE#         13
				  C:0892H         LINE#         14
				  C:0895H         LINE#         15
				  C:089EH         LINE#         16
				  C:08A9H         LINE#         17
				  C:08B2H         LINE#         18
				  -------         ENDPROC       MAIN
				  -------         ENDMOD        EX5_2
				
				  -------         MODULE        LCD
				  C:0000H         SYMBOL        _ICE_DUMMY_
				  D:0090H         PUBLIC        P1
				  C:0900H         PUBLIC        _write_LCD_command
				  C:0868H         PUBLIC        _display_LCD_string
				  C:08B4H         PUBLIC        _gotoxy
				  B:00B0H.3       PUBLIC        P3_3
				  B:00B0H.4       PUBLIC        P3_4
				  B:00B0H.5       PUBLIC        P3_5
				  C:0928H         PUBLIC        clear_LCD
				  C:0914H         PUBLIC        _write_LCD_data
				BL51 BANKED LINKER/LOCATER V5.12                                                      09/15/2005  10:08:29  PAGE 3
				
				
				  C:08EBH         PUBLIC        init_LCD
				  C:0942H         PUBLIC        int2charLCD
				  C:083BH         PUBLIC        _display_LCD_number
				  -------         PROC          _WRITE_LCD_COMMAND
				  D:0006H         SYMBOL        command
				  C:0900H         LINE#         6
				  C:0900H         LINE#         7
				  C:0900H         LINE#         8
				  C:0902H         LINE#         9
				  C:0904H         LINE#         10
				  C:0906H         LINE#         11
				  C:0908H         LINE#         12
				  C:090FH         LINE#         13
				  C:0911H         LINE#         14
				  C:0913H         LINE#         15
				  -------         ENDPROC       _WRITE_LCD_COMMAND
				  -------         PROC          _WRITE_LCD_DATA
				  D:0006H         SYMBOL        LCDdata
				  C:0914H         LINE#         16
				  C:0914H         LINE#         17
				  C:0914H         LINE#         18
				  C:0916H         LINE#         19
				  C:0918H         LINE#         20
				  C:091AH         LINE#         21
				  C:091CH         LINE#         22
				  C:0923H         LINE#         23
				  C:0925H         LINE#         24
				  C:0927H         LINE#         25
				  -------         ENDPROC       _WRITE_LCD_DATA
				  -------         PROC          INIT_LCD
				  C:08EBH         LINE#         26
				  C:08EBH         LINE#         27
				  C:08EBH         LINE#         28
				  C:08F2H         LINE#         29
				  C:08F9H         LINE#         30
				  -------         ENDPROC       INIT_LCD
				  -------         PROC          CLEAR_LCD
				  C:0928H         LINE#         32
				  C:0928H         LINE#         33
				  C:0928H         LINE#         34
				  C:092FH         LINE#         35
				  -------         ENDPROC       CLEAR_LCD
				  -------         PROC          _DISPLAY_LCD_STRING
				  D:0008H         SYMBOL        p
				  C:0868H         LINE#         37
				  C:086EH         LINE#         38
				  C:086EH         LINE#         39
				  C:087AH         LINE#         40
				  C:087AH         LINE#         41
				  C:0881H         LINE#         42
				  C:088CH         LINE#         43
				  C:088EH         LINE#         44
				  -------         ENDPROC       _DISPLAY_LCD_STRING
				  -------         PROC          _DISPLAY_LCD_NUMBER
				  D:0007H         SYMBOL        number
				  -------         DO            
				  D:0006H         SYMBOL        x
				BL51 BANKED LINKER/LOCATER V5.12                                                      09/15/2005  10:08:29  PAGE 4
				
				
				  D:000CH         SYMBOL        y
				  -------         ENDDO         
				  C:083BH         LINE#         45
				  C:083BH         LINE#         46
				  C:083BH         LINE#         48
				  C:0843H         LINE#         49
				  C:084DH         LINE#         50
				  C:085AH         LINE#         51
				  -------         ENDPROC       _DISPLAY_LCD_NUMBER
				  -------         PROC          _GOTOXY
				  D:0006H         SYMBOL        x
				  D:0008H         SYMBOL        y
				  C:08B4H         LINE#         53
				  C:08B8H         LINE#         54
				  C:08B8H         LINE#         55
				  C:08BEH         LINE#         56
				  C:08C4H         LINE#         58
				  C:08D0H         LINE#         59
				  -------         ENDPROC       _GOTOXY
				  -------         ENDMOD        LCD
				
				  -------         MODULE        DELAY100US
				  C:094DH         SEGMENT       ?PR?_DELAY100US?DELAY100US
				  D:000BH         SEGMENT       ?DT?_DELAY100US?DELAY100US
				  C:094DH         PUBLIC        _DELAY100US
				  D:000BH         SYMBOL        ?_DELAY100US?BYTE
				  N:0000H         SYMBOL        DELAY100US
				  C:094FH         SYMBOL        MORE
				  D:000BH         SYMBOL        N?040
				  C:094DH         LINE#         20
				  C:094FH         LINE#         25
				  C:0951H         LINE#         27
				  C:0953H         LINE#         29
				  C:0955H         LINE#         32
				  -------         ENDMOD        DELAY100US
				
				  -------         MODULE        ?C?SCDIV
				  C:0800H         PUBLIC        ?C?SCDIV
				  -------         ENDMOD        ?C?SCDIV
				
				  -------         MODULE        ?C?CLDPTR
				  C:0822H         PUBLIC        ?C?CLDPTR
				  -------         ENDMOD        ?C?CLDPTR
				
				*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
				    SEGMENT: ?PR?_DISPLAY_LCD_NUMBER?LCD
				
				******************************************************************************
				* RESTRICTED VERSION WITH 0800H BYTE CODE SIZE LIMIT; USED: 010FH BYTE (13%) *
				******************************************************************************
				
				Program Size: data=14.0 xdata=0 code=345
				LINK/LOCATE RUN COMPLETE.  1 WARNING(S),  0 ERROR(S)
							

相关资源