嵌入式C语言程序设计——使用MCS-51
源代码在线查看: ex6-2.m51
BL51 BANKED LINKER/LOCATER V5.12 09/15/2005 10:00:21 PAGE 1
BL51 BANKED LINKER/LOCATER V5.12, INVOKED BY:
C:\KEIL\C51\BIN\BL51.EXE ex6-2.obj TO ex6-2
MEMORY MODEL: SMALL
INPUT MODULES INCLUDED:
ex6-2.obj (EX6_2)
C:\KEIL\C51\LIB\C51S.LIB (?C_STARTUP)
C:\KEIL\C51\LIB\C51S.LIB (?C?CLDPTR)
C:\KEIL\C51\LIB\C51S.LIB (?C?SIDIV)
C:\KEIL\C51\LIB\C51S.LIB (?C_INIT)
C:\KEIL\C51\LIB\C51S.LIB (?C?UIDIV)
LINK MAP OF MODULE: ex6-2 (EX6_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 000DH UNIT ?DT?EX6_2
DATA 0015H 0002H UNIT _DATA_GROUP_
IDATA 0017H 0001H UNIT ?STACK
* * * * * * * C O D E M E M O R Y * * * * * * *
CODE 0000H 0003H ABSOLUTE
CODE 0003H 0003H ABSOLUTE
0006H 0005H *** GAP ***
CODE 000BH 0003H ABSOLUTE
000EH 07F2H *** GAP ***
CODE 0800H 00A4H UNIT ?C?LIB_CODE
CODE 08A4H 008CH UNIT ?C_C51STARTUP
CODE 0930H 0079H UNIT ?PR?_DISPLAY_LCD_NUMBER?EX6_2
CODE 09A9H 0033H UNIT ?PR?INT0_ISR?EX6_2
CODE 09DCH 0031H UNIT ?PR?_WRITE_LCD_DATA?EX6_2
CODE 0A0DH 0025H UNIT ?PR?TIMER0_ISR?EX6_2
CODE 0A32H 001EH UNIT ?PR?TIMER0_INITIALIZE?EX6_2
CODE 0A50H 0018H UNIT ?PR?MAIN?EX6_2
CODE 0A68H 0016H UNIT ?PR?_GOTOXY?EX6_2
CODE 0A7EH 0016H UNIT ?CO?EX6_2
CODE 0A94H 0015H UNIT ?PR?SET_LCD?EX6_2
CODE 0AA9H 0013H UNIT ?PR?_DISPLAY_LCD_STRING?EX6_2
CODE 0ABCH 0011H UNIT ?PR?_WRITE_LCD_COMMAND?EX6_2
CODE 0ACDH 000EH UNIT ?PR?CLEAR_LCD?EX6_2
CODE 0ADBH 000EH UNIT ?C_INITSEG
CODE 0AE9H 000DH UNIT ?PR?DELAY_2MS?EX6_2
OVERLAY MAP OF MODULE: ex6-2 (EX6_2)
SEGMENT DATA_GROUP
+--> CALLED SEGMENT START LENGTH
BL51 BANKED LINKER/LOCATER V5.12 09/15/2005 10:00:21 PAGE 2
-----------------------------------------------------
?PR?INT0_ISR?EX6_2 ----- -----
+--> ?PR?_GOTOXY?EX6_2
+--> ?PR?_DISPLAY_LCD_NUMBER?EX6_2
?PR?_GOTOXY?EX6_2 ----- -----
+--> ?PR?_WRITE_LCD_COMMAND?EX6_2
?PR?_WRITE_LCD_COMMAND?EX6_2 ----- -----
+--> ?PR?DELAY_2MS?EX6_2
?PR?_DISPLAY_LCD_NUMBER?EX6_2 0015H 0002H
+--> ?PR?_WRITE_LCD_DATA?EX6_2
+--> ?PR?_GOTOXY?EX6_2
+--> ?CO?EX6_2
+--> ?PR?_DISPLAY_LCD_STRING?EX6_2
?PR?_WRITE_LCD_DATA?EX6_2 ----- -----
+--> ?PR?_GOTOXY?EX6_2
+--> ?PR?DELAY_2MS?EX6_2
?PR?_DISPLAY_LCD_STRING?EX6_2 ----- -----
+--> ?PR?_WRITE_LCD_DATA?EX6_2
*** NEW ROOT ***************************************************
?C_C51STARTUP ----- -----
+--> ?PR?MAIN?EX6_2
+--> ?C_INITSEG
?PR?MAIN?EX6_2 ----- -----
+--> ?PR?SET_LCD?EX6_2
+--> ?PR?CLEAR_LCD?EX6_2
+--> ?CO?EX6_2
+--> ?PR?_DISPLAY_LCD_STRING?EX6_2
+--> ?PR?TIMER0_INITIALIZE?EX6_2
?PR?SET_LCD?EX6_2 ----- -----
+--> ?PR?_WRITE_LCD_COMMAND?EX6_2
?PR?CLEAR_LCD?EX6_2 ----- -----
+--> ?PR?_WRITE_LCD_COMMAND?EX6_2
SYMBOL TABLE OF MODULE: ex6-2 (EX6_2)
VALUE TYPE NAME
----------------------------------
------- MODULE EX6_2
C:0000H SYMBOL _ICE_DUMMY_
D:0080H PUBLIC P0
D:0090H PUBLIC P1
C:0A94H PUBLIC set_LCD
C:0A0DH SYMBOL timer0_isr
C:0AE9H PUBLIC delay_2ms
BL51 BANKED LINKER/LOCATER V5.12 09/15/2005 10:00:21 PAGE 3
B:00A8H.7 PUBLIC EA
C:0ABCH PUBLIC _write_LCD_command
C:0AA9H PUBLIC _display_LCD_string
C:0A68H PUBLIC _gotoxy
B:00A0H.0 PUBLIC P2_0
B:00A0H.1 PUBLIC P2_1
B:00B0H.3 PUBLIC P3_3
B:00B0H.4 PUBLIC P3_4
B:00B0H.5 PUBLIC P3_5
D:0008H PUBLIC int2char
C:0A50H PUBLIC main
C:09A9H SYMBOL int0_isr
D:0089H PUBLIC TMOD
C:0ACDH PUBLIC clear_LCD
C:09FCH PUBLIC _write_LCD_data
B:00A8H.1 PUBLIC ET0
D:008CH PUBLIC TH0
B:00A8H.0 PUBLIC EX0
B:0088H.0 PUBLIC IT0
D:008AH PUBLIC TL0
B:00B8H.1 PUBLIC PT0
B:0088H.4 PUBLIC TR0
D:0013H SYMBOL timer0_tick
C:0A32H SYMBOL timer0_initialize
C:0930H PUBLIC _display_LCD_number
------- PROC DELAY_2MS
------- DO
D:0007H SYMBOL i
D:0006H SYMBOL j
------- ENDDO
C:0AE9H LINE# 38
C:0AE9H LINE# 40
C:0AEBH LINE# 41
C:0AF5H LINE# 43
------- ENDPROC DELAY_2MS
------- PROC _WRITE_LCD_COMMAND
D:0006H SYMBOL command
C:0ABCH LINE# 45
C:0ABCH LINE# 46
C:0ABCH LINE# 47
C:0ABEH LINE# 48
C:0AC0H LINE# 49
C:0AC2H LINE# 50
C:0AC4H LINE# 51
C:0AC6H LINE# 52
C:0AC8H LINE# 53
C:0ACAH LINE# 54
------- ENDPROC _WRITE_LCD_COMMAND
C:09EDH SYMBOL L?0029
C:09F8H SYMBOL L?0030
------- PROC L?0028
------- ENDPROC L?0028
C:09EDH SYMBOL L?0029
C:09F8H SYMBOL L?0030
------- PROC _WRITE_LCD_DATA
D:0006H SYMBOL LCDdata
C:09FCH LINE# 57
BL51 BANKED LINKER/LOCATER V5.12 09/15/2005 10:00:21 PAGE 4
C:09FCH LINE# 58
C:09FCH LINE# 59
C:09FEH LINE# 60
C:0A00H LINE# 61
C:0A02H LINE# 62
C:0A04H LINE# 63
C:0A06H LINE# 64
C:0A08H LINE# 65
C:0A0AH LINE# 66
------- ENDPROC _WRITE_LCD_DATA
------- PROC SET_LCD
C:0A94H LINE# 69
C:0A94H LINE# 70
C:0A94H LINE# 71
C:0A9BH LINE# 72
C:0AA2H LINE# 73
------- ENDPROC SET_LCD
------- PROC CLEAR_LCD
C:0ACDH LINE# 76
C:0ACDH LINE# 77
C:0ACDH LINE# 78
C:0AD4H LINE# 79
------- ENDPROC CLEAR_LCD
------- PROC _DISPLAY_LCD_STRING
D:0001H SYMBOL p
C:0AA9H LINE# 82
C:0AA9H LINE# 83
C:0AA9H LINE# 84
C:0AAFH LINE# 85
C:0AAFH LINE# 86
C:0AB2H LINE# 87
C:0AB9H LINE# 88
C:0ABBH LINE# 89
------- ENDPROC _DISPLAY_LCD_STRING
------- PROC _GOTOXY
D:0006H SYMBOL x
D:0004H SYMBOL y
C:0A68H LINE# 91
C:0A68H LINE# 92
C:0A68H LINE# 93
C:0A6EH LINE# 94
C:0A73H LINE# 96
C:0A7DH LINE# 97
------- ENDPROC _GOTOXY
------- PROC _DISPLAY_LCD_NUMBER
D:0007H SYMBOL number
------- DO
D:0015H SYMBOL x
D:0001H SYMBOL y
D:0016H SYMBOL i
D:0002H SYMBOL z
------- ENDDO
C:0930H LINE# 98
C:0930H LINE# 99
C:0930H LINE# 100
C:0933H LINE# 102
C:0937H LINE# 103
BL51 BANKED LINKER/LOCATER V5.12 09/15/2005 10:00:21 PAGE 5
C:093EH LINE# 104
C:094AH LINE# 105
C:094AH LINE# 106
C:094CH LINE# 107
C:094FH LINE# 108
C:0953H LINE# 109
C:095EH LINE# 110
C:095EH LINE# 111
C:0960H LINE# 112
C:0963H LINE# 113
C:096BH LINE# 114
C:0974H LINE# 115
C:0978H LINE# 116
C:0983H LINE# 117
C:0990H LINE# 118
C:0994H LINE# 119
C:0997H LINE# 120
C:09A0H LINE# 121
------- ENDPROC _DISPLAY_LCD_NUMBER
------- PROC TIMER0_ISR
C:0A0DH LINE# 124
C:0A0FH LINE# 127
C:0A11H LINE# 128
C:0A14H LINE# 129
C:0A17H LINE# 130
C:0A19H LINE# 131
C:0A21H LINE# 132
C:0A27H LINE# 133
C:0A29H LINE# 134
C:0A2DH LINE# 135
C:0A2FH LINE# 136
C:0A2FH LINE# 137
------- ENDPROC TIMER0_ISR
------- PROC INT0_ISR
------- DO
D:0003H SYMBOL voltage
------- ENDDO
C:09A9H LINE# 139
C:09B6H LINE# 143
C:09B9H LINE# 144
C:09BBH LINE# 145
C:09BDH LINE# 146
C:09C1H LINE# 147
C:09C3H LINE# 148
C:09CCH LINE# 149
C:09D1H LINE# 150
------- ENDPROC INT0_ISR
------- PROC TIMER0_INITIALIZE
C:0A32H LINE# 152
C:0A32H LINE# 153
C:0A32H LINE# 155
C:0A34H LINE# 156
C:0A39H LINE# 157
C:0A3BH LINE# 158
C:0A3EH LINE# 159
C:0A41H LINE# 160
C:0A44H LINE# 161
BL51 BANKED LINKER/LOCATER V5.12 09/15/2005 10:00:21 PAGE 6
C:0A47H LINE# 162
C:0A49H LINE# 163
C:0A4BH LINE# 164
C:0A4DH LINE# 165
C:0A4FH LINE# 166
------- ENDPROC TIMER0_INITIALIZE
------- PROC MAIN
C:0A50H LINE# 168
C:0A50H LINE# 170
C:0A53H LINE# 171
C:0A56H LINE# 172
C:0A5FH LINE# 173
C:0A62H LINE# 174
C:0A64H LINE# 175
C:0A66H LINE# 176
------- ENDPROC MAIN
------- ENDMOD EX6_2
------- MODULE ?C?CLDPTR
C:0800H PUBLIC ?C?CLDPTR
------- ENDMOD ?C?CLDPTR
------- MODULE ?C?SIDIV
C:0819H PUBLIC ?C?SIDIV
------- ENDMOD ?C?SIDIV
------- MODULE ?C?UIDIV
C:084FH PUBLIC ?C?UIDIV
------- ENDMOD ?C?UIDIV
******************************************************************************
* RESTRICTED VERSION WITH 0800H BYTE CODE SIZE LIMIT; USED: 01CBH BYTE (22%) *
******************************************************************************
Program Size: data=24.0 xdata=0 code=767
LINK/LOCATE RUN COMPLETE. 0 WARNING(S), 0 ERROR(S)