⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 startup.lst

📁 这是atmel公司的89C51SND1C的mp3源程序
💻 LST
字号:
A51 MACRO ASSEMBLER  STARTUP                                                              07/10/2002 15:17:31 PAGE     1


MACRO ASSEMBLER A51 V6.20
OBJECT MODULE PLACED IN ..\obj\startup.obj
ASSEMBLER INVOKED BY: C:\KEIL\C51\BIN\A51.EXE ..\src\system\startup.a51 SET(SMALL) DEBUG PRINT(.\startup.lst) OBJECT(..\
                      obj\startup.obj) EP

LOC  OBJ            LINE     SOURCE

                       1     ;------------------------------------------------------------------------------
                       2     ;  This file is part of the C51 Compiler package
                       3     ;  Copyright (c) 1988-1999 Keil Elektronik GmbH and Keil Software, Inc.
                       4     ;------------------------------------------------------------------------------
                       5     ;  STARTUP.A51:  This code is executed after processor reset.
                       6     ;
                       7     ;  To translate this file use A51 with the following invocation:
                       8     ;
                       9     ;     A51 STARTUP.A51
                      10     ;
                      11     ;  To link the modified STARTUP.OBJ file to your application use the following
                      12     ;  BL51 invocation:
                      13     ;
                      14     ;     BL51 <your object file list>, STARTUP.OBJ <controls>
                      15     ;
                      16     ;------------------------------------------------------------------------------
                      17     ;
                      18     ;  User-defined Power-On Initialization of Memory
                      19     ;
                      20     ;  With the following EQU statements the initialization of memory
                      21     ;  at processor reset can be defined:
                      22     ;
                      23     ;       ; the absolute start-address of IDATA memory is always 0
  0100                24     IDATALEN    EQU 100H    ; the length of IDATA memory in bytes.
                      25     ;
  0000                26     XDATASTART  EQU 0H      ; the absolute start-address of XDATA memory
  0800                27     XDATALEN    EQU 800H    ; the length of XDATA memory in bytes.
                      28     ;
  0000                29     PDATASTART  EQU 0H      ; the absolute start-address of PDATA memory
  0200                30     PDATALEN    EQU 200H    ; the length of PDATA memory in bytes.
                      31     ;
                      32     ;  Notes:  The IDATA space overlaps physically the DATA and BIT areas of the
                      33     ;          8051 CPU. At minimum the memory space occupied from the C51 
                      34     ;          run-time routines must be set to zero.
                      35     ;------------------------------------------------------------------------------
                      36     ;
                      37     ;  Reentrant Stack Initilization
                      38     ;
                      39     ;  The following EQU statements define the stack pointer for reentrant
                      40     ;  functions and initialized it:
                      41     ;
                      42     ;  Stack Space for reentrant functions in the SMALL model.
  0000                43     IBPSTACK    EQU 0       ; set to 1 if small reentrant is used.
  0100                44     IBPSTACKTOP EQU 0FFH+1  ; set top of stack to highest location+1.
                      45     ;
                      46     ;  Stack Space for reentrant functions in the LARGE model.      
  0000                47     XBPSTACK    EQU 0       ; set to 1 if large reentrant is used.
  0000                48     XBPSTACKTOP EQU 0FFFFH+1; set top of stack to highest location+1.
                      49     ;
                      50     ;  Stack Space for reentrant functions in the COMPACT model.    
  0000                51     PBPSTACK    EQU 0       ; set to 1 if compact reentrant is used.
  0000                52     PBPSTACKTOP EQU 0FFFFH+1; set top of stack to highest location+1.
                      53     ;
                      54     ;------------------------------------------------------------------------------
                      55     ;
                      56     ;  Page Definition for Using the Compact Model with 64 KByte xdata RAM
                      57     ;
A51 MACRO ASSEMBLER  STARTUP                                                              07/10/2002 15:17:31 PAGE     2

                      58     ;  The following EQU statements define the xdata page used for pdata
                      59     ;  variables. The EQU PPAGE must conform with the PPAGE control used
                      60     ;  in the linker invocation.
                      61     ;
  0001                62     PPAGEENABLE EQU 1   ; set to 1 if pdata object are used.
  0000                63     PPAGE       EQU 0   ; define PPAGE number.
                      64     ;
                      65     ;------------------------------------------------------------------------------
                      66     
                      67             NAME    ?C_STARTUP
                      68     
                      69     
                      70     ?C_C51STARTUP   SEGMENT   CODE
                      71     ?STACK          SEGMENT   IDATA
                      72     
----                  73             RSEG    ?STACK
0000                  74             DS      1
                      75     
                      76             EXTRN CODE (?C_START)
                      77             PUBLIC  ?C_STARTUP
                      78     
----                  79             CSEG    AT  0
0000                  80     ?C_STARTUP:
0000 020000   F       81             LJMP    STARTUP1
                      82     
----                  83             RSEG    ?C_C51STARTUP
                      84     
0000                  85     STARTUP1:
                      86     
                      87     IF IDATALEN <> 0
0000 78FF             88             MOV     R0,#IDATALEN - 1
0002 E4               89             CLR     A
0003                  90       IDATALOOP:
0003 F6               91             MOV     @R0,A
0004 D8FD             92             DJNZ    R0,IDATALOOP
                      93     ENDIF
                      94     
                      95     IF XDATALEN <> 0
0006 900000           96             MOV     DPTR,#XDATASTART
0009 7F00             97             MOV     R7,#LOW (XDATALEN)
                      98       IF (LOW (XDATALEN)) <> 0
                                     MOV     R6,#(HIGH XDATALEN) +1
                               ELSE
000B 7E08            101             MOV     R6,#HIGH (XDATALEN)
                     102       ENDIF
000D E4              103             CLR     A
000E                 104       XDATALOOP:
000E F0              105             MOVX    @DPTR,A
000F A3              106             INC     DPTR
0010 DFFC            107             DJNZ    R7,XDATALOOP
0012 DEFA            108             DJNZ    R6,XDATALOOP
                     109     ENDIF
                     110     
                     111     IF PPAGEENABLE <> 0
                     112     ;        MOV     P2,#PPAGE
                     113     ENDIF
                     114     
                     115     IF PDATALEN <> 0
0014 7800            116             MOV     R0,#PDATASTART
0016 7F00            117             MOV     R7,#LOW (PDATALEN)
0018 E4              118             CLR     A
0019                 119     PDATALOOP:
0019 F2              120             MOVX    @R0,A
001A 08              121             INC     R0
001B DFFC            122             DJNZ    R7,PDATALOOP
                     123     ENDIF
A51 MACRO ASSEMBLER  STARTUP                                                              07/10/2002 15:17:31 PAGE     3

                     124     
                     125     IF IBPSTACK <> 0
                             EXTRN DATA (?C_IBP)
                             
                                     MOV     ?C_IBP,#LOW IBPSTACKTOP
                             ENDIF
                     130     
                     131     IF XBPSTACK <> 0
                             EXTRN DATA (?C_XBP)
                             
                                     MOV     ?C_XBP,#HIGH XBPSTACKTOP
                                     MOV     ?C_XBP+1,#LOW XBPSTACKTOP
                             ENDIF
                     137     
                     138     IF PBPSTACK <> 0
                             EXTRN DATA (?C_PBP)
                                     MOV     ?C_PBP,#LOW PBPSTACKTOP
                             ENDIF
                     142     
001D 758100   F      143             MOV     SP,#?STACK-1
0020 020000   F      144             LJMP    ?C_START
                     145     
                     146             END
A51 MACRO ASSEMBLER  STARTUP                                                              07/10/2002 15:17:31 PAGE     4

SYMBOL TABLE LISTING
------ ----- -------


N A M E             T Y P E  V A L U E   ATTRIBUTES

?C_C51STARTUP. . .  C SEG    0023H       REL=UNIT
?C_START . . . . .  C ADDR   -----       EXT
?C_STARTUP . . . .  C ADDR   0000H   A   
?STACK . . . . . .  I SEG    0001H       REL=UNIT
IBPSTACK . . . . .  N NUMB   0000H   A   
IBPSTACKTOP. . . .  N NUMB   0100H   A   
IDATALEN . . . . .  N NUMB   0100H   A   
IDATALOOP. . . . .  C ADDR   0003H   R   SEG=?C_C51STARTUP
PBPSTACK . . . . .  N NUMB   0000H   A   
PBPSTACKTOP. . . .  N NUMB   0000H   A   
PDATALEN . . . . .  N NUMB   0200H   A   
PDATALOOP. . . . .  C ADDR   0019H   R   SEG=?C_C51STARTUP
PDATASTART . . . .  N NUMB   0000H   A   
PPAGE. . . . . . .  N NUMB   0000H   A   
PPAGEENABLE. . . .  N NUMB   0001H   A   
SP . . . . . . . .  D ADDR   0081H   A   
STARTUP1 . . . . .  C ADDR   0000H   R   SEG=?C_C51STARTUP
XBPSTACK . . . . .  N NUMB   0000H   A   
XBPSTACKTOP. . . .  N NUMB   0000H   A   
XDATALEN . . . . .  N NUMB   0800H   A   
XDATALOOP. . . . .  C ADDR   000EH   R   SEG=?C_C51STARTUP
XDATASTART . . . .  N NUMB   0000H   A   


REGISTER BANK(S) USED: 0 

ASSEMBLY COMPLETE.  0 WARNING(S), 0 ERROR(S)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -