BL51 BANKED LINKER/LOCATER V5.03                                                        06/22/2006  17:37:20  PAGE 1


BL51 BANKED LINKER/LOCATER V5.03, INVOKED BY:
C:\KEIL\C51\BIN\BL51.EXE STARTUP.obj, at24c256_demo1.obj, at24c256.obj, iic.obj, delay.obj TO AT24C256_demo1 RAMSIZE (25
>> 6) CODE (0X0000-0X1FFF)


MEMORY MODEL: SMALL


INPUT MODULES INCLUDED:
  STARTUP.obj (?C_STARTUP)
  at24c256_demo1.obj (AT24C256_DEMO1)
  at24c256.obj (AT24C256)
  iic.obj (IIC)
  delay.obj (DELAY)
  C:\KEIL\C51\LIB\C51S.LIB (?C?CLDPTR)
  C:\KEIL\C51\LIB\C51S.LIB (?C?CSTPTR)
  C:\KEIL\C51\LIB\C51S.LIB (PRINTF)
  C:\KEIL\C51\LIB\C51S.LIB (?C?CLDOPTR)
  C:\KEIL\C51\LIB\C51S.LIB (?C?PLDIIDATA)
  C:\KEIL\C51\LIB\C51S.LIB (?C?CCASE)
  C:\KEIL\C51\LIB\C51S.LIB (PUTCHAR)


LINK MAP OF MODULE:  AT24C256_demo1 (?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"
                    0008H     0018H                  *** GAP ***
            BIT     0020H.0   0001H.1   UNIT         _BIT_GROUP_
                    0021H.1   0000H.7                *** GAP ***
            DATA    0022H     0057H     UNIT         _DATA_GROUP_
            IDATA   0079H     0001H     UNIT         ?STACK

            * * * * * * *   C O D E   M E M O R Y   * * * * * * *
            CODE    0000H     0003H     ABSOLUTE     
                    0003H     07FDH                  *** GAP ***
            CODE    0800H     035CH     UNIT         ?PR?PRINTF?PRINTF
            CODE    0B5CH     00E9H     UNIT         ?PR?MAIN?AT24C256_DEMO1
            CODE    0C45H     00D5H     UNIT         ?CO?AT24C256_DEMO1
            CODE    0D1AH     008EH     UNIT         ?C?LIB_CODE
            CODE    0DA8H     006DH     UNIT         ?PR?_I2C_SEQRD?IIC
            CODE    0E15H     004AH     UNIT         ?PR?_I2C_SEQWR?IIC
            CODE    0E5FH     0046H     UNIT         ?PR?_I2C_SENDBYTE?IIC
            CODE    0EA5H     0033H     UNIT         ?PR?_EEPROM_WRPAGE?AT24C256
            CODE    0ED8H     0033H     UNIT         ?PR?_EEPROM_RDPAGE?AT24C256
            CODE    0F0BH     0029H     UNIT         ?PR?_EEPROM_WRBYTE?AT24C256
            CODE    0F34H     0027H     UNIT         ?PR?_EEPROM_RDRANDOMBYTE?AT24C256
            CODE    0F5BH     0027H     UNIT         ?PR?PUTCHAR?PUTCHAR
            CODE    0F82H     0023H     UNIT         ?PR?I2C_RCVBYTE?IIC
            CODE    0FA5H     0020H     UNIT         ?PR?_DELAYMS?DELAY
            CODE    0FC5H     0018H     UNIT         ?PR?I2C_ACK?IIC
            CODE    0FDDH     0013H     UNIT         ?PR?I2C_START?IIC
            CODE    0FF0H     0012H     UNIT         ?PR?_DELAYUS?DELAY
            CODE    1002H     0011H     UNIT         ?PR?I2C_STOP?IIC
BL51 BANKED LINKER/LOCATER V5.03                                                      06/22/2006  17:37:20  PAGE 2


            CODE    1013H     000DH     UNIT         ?PR?INIT_UART?AT24C256_DEMO1
            CODE    1020H     000CH     UNIT         ?C_C51STARTUP



OVERLAY MAP OF MODULE:   AT24C256_demo1 (?C_STARTUP)


SEGMENT                                      BIT_GROUP          DATA_GROUP 
  +--> CALLED SEGMENT                     START    LENGTH     START    LENGTH
-----------------------------------------------------------------------------
?C_C51STARTUP                             -----    -----      -----    -----
  +--> ?PR?MAIN?AT24C256_DEMO1

?PR?MAIN?AT24C256_DEMO1                   -----    -----      0022H    0043H
  +--> ?PR?INIT_UART?AT24C256_DEMO1
  +--> ?CO?AT24C256_DEMO1
  +--> ?PR?PRINTF?PRINTF
  +--> ?PR?_DELAYMS?DELAY
  +--> ?PR?_EEPROM_WRPAGE?AT24C256
  +--> ?PR?_EEPROM_RDPAGE?AT24C256
  +--> ?PR?_EEPROM_WRBYTE?AT24C256
  +--> ?PR?_EEPROM_RDRANDOMBYTE?AT24C256

?PR?PRINTF?PRINTF                         0020H.0  0001H.1    0065H    0014H
  +--> ?PR?PUTCHAR?PUTCHAR

?PR?_EEPROM_WRPAGE?AT24C256               -----    -----      0065H    0007H
  +--> ?PR?_I2C_SEQWR?IIC

?PR?_I2C_SEQWR?IIC                        -----    -----      006CH    0007H
  +--> ?PR?I2C_START?IIC
  +--> ?PR?_I2C_SENDBYTE?IIC
  +--> ?PR?I2C_STOP?IIC

?PR?_EEPROM_RDPAGE?AT24C256               -----    -----      0065H    0007H
  +--> ?PR?_I2C_SEQRD?IIC

?PR?_I2C_SEQRD?IIC                        -----    -----      006CH    0007H
  +--> ?PR?I2C_START?IIC
  +--> ?PR?_I2C_SENDBYTE?IIC
  +--> ?PR?I2C_RCVBYTE?IIC
  +--> ?PR?I2C_ACK?IIC
  +--> ?PR?I2C_STOP?IIC

?PR?I2C_ACK?IIC                           0020H.0  0000H.1    -----    -----

?PR?_EEPROM_WRBYTE?AT24C256               -----    -----      0065H    0001H
  +--> ?PR?_I2C_SEQWR?IIC

?PR?_EEPROM_RDRANDOMBYTE?AT24C256         -----    -----      0065H    0004H
  +--> ?PR?_I2C_SEQRD?IIC



SYMBOL TABLE OF MODULE:  AT24C256_demo1 (?C_STARTUP)

BL51 BANKED LINKER/LOCATER V5.03                                                      06/22/2006  17:37:20  PAGE 3


  VALUE           TYPE          NAME
  ----------------------------------

  -------         MODULE        ?C_STARTUP
  C:1020H         SEGMENT       ?C_C51STARTUP
  I:0079H         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:1023H         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:1020H         SYMBOL        STARTUP1
  N:0000H         SYMBOL        XBPSTACK
  N:0000H         SYMBOL        XBPSTACKTOP
  N:0000H         SYMBOL        XDATALEN
  N:0000H         SYMBOL        XDATASTART
  C:0000H         LINE#         92
  C:1020H         LINE#         99
  C:1022H         LINE#         100
  C:1023H         LINE#         101
  C:1024H         LINE#         102
  C:1026H         LINE#         151
  C:1029H         LINE#         155
  -------         ENDMOD        ?C_STARTUP

  -------         MODULE        AT24C256_DEMO1
  C:0000H         SYMBOL        _ICE_DUMMY_
  C:0B5CH         PUBLIC        main
  D:0098H         PUBLIC        SCON
  D:0089H         PUBLIC        TMOD
  D:0088H         PUBLIC        TCON
  D:008DH         PUBLIC        TH1
  C:1013H         PUBLIC        init_uart
  -------         PROC          INIT_UART
  C:1013H         LINE#         21
  C:1013H         LINE#         22
  C:1013H         LINE#         23
  C:1016H         LINE#         24
  C:1019H         LINE#         25
  C:101CH         LINE#         26
  C:101FH         LINE#         27
  -------         ENDPROC       INIT_UART
  -------         PROC          MAIN
  -------         DO            
  D:0022H         SYMBOL        eeprom_dat
BL51 BANKED LINKER/LOCATER V5.03                                                      06/22/2006  17:37:20  PAGE 4


  D:0023H         SYMBOL        i
  C:0CDAH         SYMBOL        s
  D:0025H         SYMBOL        k
  -------         ENDDO         
  C:0B5CH         LINE#         34
  C:0B5CH         LINE#         35
  C:0B5CH         LINE#         37
  C:0B61H         LINE#         44
  C:0B64H         LINE#         45
  C:0B6DH         LINE#         46
  C:0B74H         LINE#         49
  C:0B85H         LINE#         50
  C:0B8CH         LINE#         52
  C:0B9DH         LINE#         53
  C:0BA2H         LINE#         54
  C:0BCAH         LINE#         57
  C:0BD0H         LINE#         58
  C:0BD0H         LINE#         59
  C:0BD0H         LINE#         60
  C:0BDEH         LINE#         61
  C:0BDEH         LINE#         62
  C:0BECH         LINE#         63
  C:0BFBH         LINE#         64
  C:0BFBH         LINE#         66
  C:0C02H         LINE#         69
  C:0C16H         LINE#         70
  C:0C25H         LINE#         72
  C:0C32H         LINE#         74
  C:0C3AH         LINE#         75
  C:0C43H         LINE#         77
  C:0C43H         LINE#         78
  C:0C43H         LINE#         80
  -------         ENDPROC       MAIN
  -------         ENDMOD        AT24C256_DEMO1

  -------         MODULE        AT24C256
  C:0000H         SYMBOL        _ICE_DUMMY_
  C:0F34H         PUBLIC        _eeprom_RdRandomByte
  D:0090H         PUBLIC        P1
  C:0ED8H         PUBLIC        _eeprom_RdPage
  D:00B0H         PUBLIC        P3
  D:00A8H         PUBLIC        IE
  C:0EA5H         PUBLIC        _eeprom_WrPage
  D:00B8H         PUBLIC        IP
  C:0F0BH         PUBLIC        _eeprom_WrByte
  D:0098H         PUBLIC        SCON
  D:0088H         PUBLIC        TCON
  D:00C8H         PUBLIC        T2CON
  D:00D0H         PUBLIC        PSW
  -------         PROC          _EEPROM_WRBYTE
  D:0002H         SYMBOL        eeprom_addr
  D:0004H         SYMBOL        dataptr
  D:0065H         SYMBOL        c
  -------         DO            
  D:0003H         SYMBOL        dataptrh
  D:0006H         SYMBOL        dataptrl
  -------         ENDDO         
BL51 BANKED LINKER/LOCATER V5.03                                                      06/22/2006  17:37:20  PAGE 5


  C:0F0BH         LINE#         31
  C:0F0FH         LINE#         32
  C:0F0FH         LINE#         35
  C:0F13H         LINE#         36
  C:0F17H         LINE#         38
  C:0F31H         LINE#         40
  C:0F33H         LINE#         41
  -------         ENDPROC       _EEPROM_WRBYTE
  -------         PROC          _EEPROM_WRPAGE
  D:0065H         SYMBOL        eeprom_addr
  D:0004H         SYMBOL        dataptr
  D:0068H         SYMBOL        s
  D:006BH         SYMBOL        length
  -------         DO            
  D:0007H         SYMBOL        dataptrh
  D:0006H         SYMBOL        dataptrl
  -------         ENDDO         
  C:0EA5H         LINE#         73
  C:0EADH         LINE#         74
  C:0EADH         LINE#         77
  C:0EAFH         LINE#         78
  C:0EB1H         LINE#         80
  C:0EBBH         LINE#         82
  C:0ED5H         LINE#         84
  C:0ED7H         LINE#         85
  -------         ENDPROC       _EEPROM_WRPAGE
  -------         PROC          _EEPROM_RDRANDOMBYTE
  D:0065H         SYMBOL        eeprom_addr
  D:0004H         SYMBOL        dataptr
  D:0066H         SYMBOL        s
  -------         DO            
  D:0007H         SYMBOL        dataptrh
  D:0006H         SYMBOL        dataptrl
  -------         ENDDO         
  C:0F34H         LINE#         104
  C:0F3CH         LINE#         105
  C:0F3CH         LINE#         108
  C:0F3EH         LINE#         109
  C:0F40H         LINE#         111
  C:0F58H         LINE#         113
  C:0F5AH         LINE#         114
  -------         ENDPROC       _EEPROM_RDRANDOMBYTE
  -------         PROC          _EEPROM_RDPAGE
  D:0065H         SYMBOL        eeprom_addr
  D:0004H         SYMBOL        dataptr
  D:0068H         SYMBOL        s
  D:006BH         SYMBOL        length
  -------         DO            
  D:0007H         SYMBOL        dataptrh
  D:0006H         SYMBOL        dataptrl
  -------         ENDDO         
  C:0ED8H         LINE#         130
  C:0EE0H         LINE#         131
  C:0EE0H         LINE#         134
  C:0EE2H         LINE#         135
  C:0EE4H         LINE#         137
  C:0EEEH         LINE#         139
BL51 BANKED LINKER/LOCATER V5.03                                                      06/22/2006  17:37:20  PAGE 6


  C:0F08H         LINE#         141
  C:0F0AH         LINE#         142
  -------         ENDPROC       _EEPROM_RDPAGE
  -------         ENDMOD        AT24C256

  -------         MODULE        IIC
  C:0000H         SYMBOL        _ICE_DUMMY_
  D:0090H         PUBLIC        P1
  C:1002H         PUBLIC        i2c_Stop
  C:0DA8H         PUBLIC        _i2c_SeqRd
  C:0F82H         PUBLIC        i2c_RcvByte
  C:0E15H         PUBLIC        _i2c_SeqWr
  B:0090H.3       PUBLIC        SDA
  C:0E5FH         PUBLIC        _i2c_SendByte
  B:0090H.2       PUBLIC        SCL
  C:0FC5H         PUBLIC        i2c_Ack
  C:0FDDH         PUBLIC        i2c_Start
  -------         PROC          I2C_START
  C:0FDDH         LINE#         38
  C:0FDDH         LINE#         39
  C:0FDDH         LINE#         40
  C:0FDFH         LINE#         41
  C:0FE1H         LINE#         42
  C:0FE6H         LINE#         43
  C:0FE8H         LINE#         44
  C:0FEDH         LINE#         45
  C:0FEFH         LINE#         46
  -------         ENDPROC       I2C_START
  -------         PROC          I2C_STOP
  C:1002H         LINE#         58
  C:1002H         LINE#         59
  C:1002H         LINE#         60
  C:1004H         LINE#         61
  C:1006H         LINE#         62
  C:100BH         LINE#         63
  C:100DH         LINE#         64
  C:1012H         LINE#         65
  -------         ENDPROC       I2C_STOP
  -------         PROC          I2C_ACK
  B:0020H.0       SYMBOL        reply
  C:0FC5H         LINE#         80
  C:0FC5H         LINE#         81
  C:0FC5H         LINE#         82
  C:0FCEH         LINE#         83
  C:0FD1H         LINE#         84
  C:0FD3H         LINE#         85
  C:0FD8H         LINE#         86
  C:0FDAH         LINE#         87
  C:0FDCH         LINE#         88
  -------         ENDPROC       I2C_ACK
  -------         PROC          _I2C_SENDBYTE
  D:0007H         SYMBOL        c
  -------         DO            
  D:0006H         SYMBOL        i
  -------         ENDDO         
  C:0E5FH         LINE#         107
  C:0E5FH         LINE#         108
BL51 BANKED LINKER/LOCATER V5.03                                                      06/22/2006  17:37:20  PAGE 7


  C:0E5FH         LINE#         111
  C:0E61H         LINE#         112
  C:0E61H         LINE#         113
  C:0E74H         LINE#         114
  C:0E75H         LINE#         115
  C:0E77H         LINE#         116
  C:0E7CH         LINE#         117
  C:0E7EH         LINE#         118
  C:0E82H         LINE#         119
  C:0E84H         LINE#         120
  C:0E86H         LINE#         121
  C:0E88H         LINE#         122
  C:0E94H         LINE#         123
  C:0E9DH         LINE#         124
  C:0E9FH         LINE#         125
  C:0EA1H         LINE#         126
  C:0EA4H         LINE#         127
  -------         ENDPROC       _I2C_SENDBYTE
  -------         PROC          I2C_RCVBYTE
  -------         DO            
  D:0007H         SYMBOL        val
  D:0006H         SYMBOL        i
  -------         ENDDO         
  C:0F82H         LINE#         139
  C:0F82H         LINE#         140
  C:0F82H         LINE#         141
  C:0F84H         LINE#         144
  C:0F86H         LINE#         146
  C:0F87H         LINE#         147
  C:0F87H         LINE#         148
  C:0F89H         LINE#         149
  C:0F8EH         LINE#         150
  C:0F90H         LINE#         151
  C:0F92H         LINE#         152
  C:0F96H         LINE#         153
  C:0F9CH         LINE#         154
  C:0FA0H         LINE#         156
  C:0FA2H         LINE#         157
  C:0FA4H         LINE#         158
  C:0FA4H         LINE#         159
  -------         ENDPROC       I2C_RCVBYTE
  -------         PROC          _I2C_SEQWR
  D:0007H         SYMBOL        device
  D:0005H         SYMBOL        addrh
  D:0004H         SYMBOL        addrl
  D:006FH         SYMBOL        s
  D:0072H         SYMBOL        length
  -------         DO            
  D:0005H         SYMBOL        i
  -------         ENDDO         
  C:0E15H         LINE#         181
  C:0E17H         LINE#         182
  C:0E17H         LINE#         185
  C:0E1AH         LINE#         186
  C:0E20H         LINE#         187
  C:0E24H         LINE#         188
  C:0E24H         LINE#         189
BL51 BANKED LINKER/LOCATER V5.03                                                      06/22/2006  17:37:20  PAGE 8


  C:0E2CH         LINE#         190
  C:0E2CH         LINE#         191
  C:0E34H         LINE#         192
  C:0E3CH         LINE#         193
  C:0E3CH         LINE#         194
  C:0E4CH         LINE#         195
  C:0E57H         LINE#         196
  C:0E5AH         LINE#         197
  C:0E5DH         LINE#         198
  C:0E5EH         LINE#         199
  -------         ENDPROC       _I2C_SEQWR
  -------         PROC          _I2C_SEQRD
  D:0004H         SYMBOL        device
  D:0005H         SYMBOL        addrh
  D:0003H         SYMBOL        addrl
  D:006FH         SYMBOL        s
  D:0072H         SYMBOL        length
  -------         DO            
  D:0005H         SYMBOL        i
  -------         ENDDO         
  C:0DA8H         LINE#         219
  C:0DAAH         LINE#         220
  C:0DAAH         LINE#         223
  C:0DADH         LINE#         224
  C:0DB3H         LINE#         225
  C:0DB7H         LINE#         226
  C:0DB7H         LINE#         227
  C:0DBFH         LINE#         228
  C:0DBFH         LINE#         229
  C:0DC7H         LINE#         230
  C:0DCAH         LINE#         232
  C:0DD3H         LINE#         234
  C:0DDEH         LINE#         235
  C:0DDEH         LINE#         236
  C:0DEBH         LINE#         237
  C:0DF0H         LINE#         238
  C:0DFBH         LINE#         239
  C:0DFEH         LINE#         241
  C:0E0BH         LINE#         242
  C:0E10H         LINE#         243
  C:0E13H         LINE#         245
  C:0E14H         LINE#         246
  -------         ENDPROC       _I2C_SEQRD
  -------         ENDMOD        IIC

  -------         MODULE        DELAY
  C:0000H         SYMBOL        _ICE_DUMMY_
  D:0090H         PUBLIC        P1
  D:00B0H         PUBLIC        P3
  D:00A8H         PUBLIC        IE
  C:0FA5H         PUBLIC        _DelayMs
  D:00B8H         PUBLIC        IP
  C:0FF0H         PUBLIC        _DelayUs
  D:0098H         PUBLIC        SCON
  D:0088H         PUBLIC        TCON
  D:00C8H         PUBLIC        T2CON
  D:00D0H         PUBLIC        PSW
BL51 BANKED LINKER/LOCATER V5.03                                                      06/22/2006  17:37:20  PAGE 9


  -------         PROC          _DELAYUS
  D:0006H         SYMBOL        N
  -------         DO            
  D:0004H         SYMBOL        x
  -------         ENDDO         
  C:0FF0H         LINE#         36
  C:0FF0H         LINE#         37
  C:0FF0H         LINE#         40
  C:1001H         LINE#         41
  -------         ENDPROC       _DELAYUS
  -------         PROC          _DELAYMS
  D:0006H         SYMBOL        msec
  -------         DO            
  D:0004H         SYMBOL        x
  D:0002H         SYMBOL        y
  -------         ENDDO         
  C:0FA5H         LINE#         54
  C:0FA5H         LINE#         55
  C:0FA5H         LINE#         58
  C:0FAFH         LINE#         59
  C:0FAFH         LINE#         60
  C:0FBDH         LINE#         61
  C:0FC4H         LINE#         62
  -------         ENDPROC       _DELAYMS
  -------         ENDMOD        DELAY

  -------         MODULE        ?C?CLDPTR
  C:0D1AH         PUBLIC        ?C?CLDPTR
  -------         ENDMOD        ?C?CLDPTR

  -------         MODULE        ?C?CSTPTR
  C:0D33H         PUBLIC        ?C?CSTPTR
  -------         ENDMOD        ?C?CSTPTR

  -------         MODULE        PRINTF
  D:0065H         PUBLIC        ?_PRINTF517?BYTE
  D:0065H         PUBLIC        ?_PRINTF?BYTE
  D:0065H         PUBLIC        ?_SPRINTF517?BYTE
  D:0065H         PUBLIC        ?_SPRINTF?BYTE
  C:0862H         PUBLIC        _PRINTF
  C:0862H         PUBLIC        _PRINTF517
  C:085CH         PUBLIC        _SPRINTF
  C:085CH         PUBLIC        _SPRINTF517
  -------         ENDMOD        PRINTF

  -------         MODULE        ?C?CLDOPTR
  C:0D45H         PUBLIC        ?C?CLDOPTR
  -------         ENDMOD        ?C?CLDOPTR

  -------         MODULE        ?C?PLDIIDATA
  C:0D72H         PUBLIC        ?C?PLDIIDATA
  -------         ENDMOD        ?C?PLDIIDATA

  -------         MODULE        ?C?CCASE
  C:0D82H         PUBLIC        ?C?CCASE
  -------         ENDMOD        ?C?CCASE

BL51 BANKED LINKER/LOCATER V5.03                                                      06/22/2006  17:37:20  PAGE 10


  -------         MODULE        PUTCHAR
  C:0F5BH         PUBLIC        _PUTCHAR
  -------         ENDMOD        PUTCHAR

*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
    SEGMENT: ?PR?_DELAYUS?DELAY

******************************************************************************
* RESTRICTED VERSION WITH 0800H BYTE CODE SIZE LIMIT; USED: 0440H BYTE (53%) *
******************************************************************************

Program Size: data=97.1 xdata=0 code=2095
LINK/LOCATE RUN COMPLETE.  1 WARNING(S),  0 ERROR(S)
