从零开始学51单片机源代码
源代码在线查看: 485中继.m51
BL51 BANKED LINKER/LOCATER V6.05 07/04/2012 21:28:33 PAGE 1
BL51 BANKED LINKER/LOCATER V6.05, INVOKED BY:
C:\KEIL\C51\BIN\BL51.EXE STARTUP.obj, main.obj TO 485中继 RAMSIZE (256)
MEMORY MODEL: SMALL
INPUT MODULES INCLUDED:
STARTUP.obj (?C_STARTUP)
main.obj (MAIN)
LINK MAP OF MODULE: 485中继 (?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 0016H UNIT ?DT?MAIN
001EH 0002H *** GAP ***
BIT 0020H.0 0000H.2 UNIT ?BI?MAIN
0020H.2 0000H.6 *** GAP ***
IDATA 0021H 0001H UNIT ?STACK
* * * * * * * C O D E M E M O R Y * * * * * * *
CODE 0000H 0003H ABSOLUTE
CODE 0003H 001EH UNIT ?PR?_MS_DELAY?MAIN
0021H 0002H *** GAP ***
CODE 0023H 0003H ABSOLUTE
CODE 0026H 000EH UNIT ?PR?INIT_TIMER?MAIN
CODE 0034H 000DH UNIT ?PR?INIT_USART2?MAIN
0041H 0002H *** GAP ***
CODE 0043H 0003H ABSOLUTE
CODE 0046H 0051H UNIT ?PR?MAIN?MAIN
CODE 0097H 002DH UNIT ?PR?USART2_INTERRUPT?MAIN
CODE 00C4H 0027H UNIT ?PR?USART_INTERRUPT?MAIN
CODE 00EBH 000CH UNIT ?C_C51STARTUP
CODE 00F7H 000CH UNIT ?PR?_SEND2?MAIN
CODE 0103H 000AH UNIT ?PR?_SEND1?MAIN
CODE 010DH 0009H UNIT ?PR?INIT_USART?MAIN
OVERLAY MAP OF MODULE: 485中继 (?C_STARTUP)
SEGMENT
+--> CALLED SEGMENT
---------------------
?C_C51STARTUP
+--> ?PR?MAIN?MAIN
?PR?MAIN?MAIN
+--> ?PR?_MS_DELAY?MAIN
+--> ?PR?INIT_USART?MAIN
+--> ?PR?INIT_USART2?MAIN
BL51 BANKED LINKER/LOCATER V6.05 07/04/2012 21:28:33 PAGE 2
+--> ?PR?INIT_TIMER?MAIN
+--> ?PR?_SEND2?MAIN
+--> ?PR?_SEND1?MAIN
SYMBOL TABLE OF MODULE: 485中继 (?C_STARTUP)
VALUE TYPE NAME
----------------------------------
------- MODULE ?C_STARTUP
C:00EBH SEGMENT ?C_C51STARTUP
I:0021H 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:00EEH SYMBOL IDATALOOP
N:0000H SYMBOL PBPSTACK
N:0100H 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:00EBH SYMBOL STARTUP1
N:0000H SYMBOL XBPSTACK
N:0000H SYMBOL XBPSTACKTOP
N:0000H SYMBOL XDATALEN
N:0000H SYMBOL XDATASTART
C:0000H LINE# 126
C:00EBH LINE# 133
C:00EDH LINE# 134
C:00EEH LINE# 135
C:00EFH LINE# 136
C:00F1H LINE# 185
C:00F4H LINE# 196
------- ENDMOD ?C_STARTUP
------- MODULE MAIN
C:0000H SYMBOL _ICE_DUMMY_
D:0090H PUBLIC P1
D:00B0H PUBLIC P3
B:00A8H.7 PUBLIC EA
D:00A8H PUBLIC IE
C:0097H PUBLIC USART2_interrupt
B:00A8H.4 PUBLIC ES
D:00B8H PUBLIC IP
B:0098H.0 PUBLIC RI
B:0098H.1 PUBLIC TI
D:0008H PUBLIC rec_num1
BL51 BANKED LINKER/LOCATER V6.05 07/04/2012 21:28:33 PAGE 3
D:0009H PUBLIC rec_num2
C:0046H PUBLIC main
D:0099H PUBLIC SBUF
D:000AH PUBLIC reciev1
D:0014H PUBLIC reciev2
D:0098H PUBLIC SCON
D:0089H PUBLIC TMOD
D:0088H PUBLIC TCON
C:0026H PUBLIC init_timer
D:00AFH PUBLIC IE2
D:008EH PUBLIC AUXR
C:010DH PUBLIC init_usart
B:00A8H.3 PUBLIC ET1
D:008CH PUBLIC TH0
B:0098H.7 PUBLIC SM0
D:008AH PUBLIC TL0
B:0098H.6 PUBLIC SM1
C:0003H PUBLIC _ms_delay
B:0088H.6 PUBLIC TR1
C:0103H PUBLIC _send1
C:00F7H PUBLIC _send2
B:0020H.0 PUBLIC r1tag
B:0020H.1 PUBLIC r2tag
D:009BH PUBLIC S2BUF
C:00C4H PUBLIC USART_interrupt
B:0098H.4 PUBLIC REN
D:009AH PUBLIC S2CON
D:00C8H PUBLIC T2CON
D:009CH PUBLIC BRT
B:00B0H.0 PUBLIC dir1
B:0090H.0 PUBLIC dir2
D:00D0H PUBLIC PSW
C:0034H PUBLIC init_usart2
------- PROC INIT_USART
C:010DH LINE# 30
C:010DH LINE# 31
C:010DH LINE# 32
C:010FH LINE# 33
C:0111H LINE# 34
C:0113H LINE# 35
C:0115H LINE# 36
------- ENDPROC INIT_USART
------- PROC INIT_USART2
C:0034H LINE# 38
C:0034H LINE# 39
C:0034H LINE# 40
C:0037H LINE# 41
C:003AH LINE# 43
C:003DH LINE# 44
C:0040H LINE# 45
------- ENDPROC INIT_USART2
------- PROC INIT_TIMER
C:0026H LINE# 47
C:0026H LINE# 48
C:0026H LINE# 49
C:0029H LINE# 50
C:002CH LINE# 51
BL51 BANKED LINKER/LOCATER V6.05 07/04/2012 21:28:33 PAGE 4
C:002FH LINE# 52
C:0031H LINE# 53
C:0033H LINE# 54
------- ENDPROC INIT_TIMER
------- PROC _MS_DELAY
D:0006H SYMBOL t
------- DO
D:0004H SYMBOL i
------- ENDDO
C:0003H LINE# 57
C:0003H LINE# 58
C:0003H LINE# 60
C:000CH LINE# 61
C:0020H LINE# 63
------- ENDPROC _MS_DELAY
------- PROC _SEND1
D:0007H SYMBOL c
C:0103H LINE# 65
C:0103H LINE# 66
C:0103H LINE# 67
C:0105H LINE# 68
C:0107H LINE# 69
C:010AH LINE# 70
C:010CH LINE# 71
------- ENDPROC _SEND1
------- PROC _SEND2
D:0007H SYMBOL c
C:00F7H LINE# 73
C:00F7H LINE# 74
C:00F7H LINE# 75
C:00F9H LINE# 76
C:00FBH LINE# 77
C:0100H LINE# 78
C:0102H LINE# 79
------- ENDPROC _SEND2
------- PROC USART_INTERRUPT
C:00C4H LINE# 5
C:00CDH LINE# 7
C:00D0H LINE# 8
C:00D0H LINE# 9
C:00D2H LINE# 10
C:00D4H LINE# 11
C:00DBH LINE# 12
C:00DDH LINE# 13
C:00DFH LINE# 14
C:00DFH LINE# 15
C:00E2H LINE# 16
C:00E2H LINE# 17
C:00E4H LINE# 18
C:00E4H LINE# 19
------- ENDPROC USART_INTERRUPT
------- PROC USART2_INTERRUPT
C:0097H LINE# 21
C:00A0H LINE# 24
C:00A5H LINE# 25
C:00A5H LINE# 27
C:00A8H LINE# 28
BL51 BANKED LINKER/LOCATER V6.05 07/04/2012 21:28:33 PAGE 5
C:00AAH LINE# 29
C:00B1H LINE# 30
C:00B3H LINE# 31
C:00B5H LINE# 32
C:00B5H LINE# 34
C:00BAH LINE# 35
C:00BAH LINE# 37
C:00BDH LINE# 38
C:00BDH LINE# 39
------- ENDPROC USART2_INTERRUPT
------- PROC MAIN
C:0046H LINE# 41
C:0046H LINE# 42
C:0046H LINE# 43
C:004DH LINE# 44
C:0050H LINE# 45
C:0053H LINE# 46
C:0056H LINE# 48
C:0059H LINE# 49
C:005BH LINE# 50
C:005DH LINE# 51
C:005FH LINE# 53
C:0061H LINE# 54
C:0063H LINE# 56
C:0065H LINE# 58
C:0065H LINE# 59
C:0065H LINE# 60
C:006EH LINE# 61
C:006EH LINE# 62
C:0071H LINE# 63
C:0071H LINE# 64
C:0073H LINE# 65
C:007DH LINE# 66
C:007DH LINE# 67
C:007DH LINE# 69
C:0086H LINE# 70
C:0086H LINE# 71
C:0089H LINE# 72
C:0089H LINE# 73
C:008BH LINE# 74
C:0095H LINE# 75
C:0095H LINE# 76
C:0095H LINE# 77
------- ENDPROC MAIN
------- ENDMOD MAIN
Program Size: data=31.2 xdata=0 code=274
LINK/LOCATE RUN COMPLETE. 0 WARNING(S), 0 ERROR(S)