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

📄 startup.lst

📁 采用811芯片实现单片机读写U盘的源代码
💻 LST
📖 第 1 页 / 共 2 页
字号:
A51 MACRO ASSEMBLER  STARTUP                                                              09/22/2005 17:15:32 PAGE     1


MACRO ASSEMBLER A51 V7.00a
OBJECT MODULE PLACED IN .\out\STARTUP.obj
ASSEMBLER INVOKED BY: C:\Keil\C51\BIN\A51.EXE STARTUP.A51 SET(LARGE) DEBUG OBJECT(.\out\STARTUP.obj) EP

LOC  OBJ            LINE     SOURCE

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

                      59     ;  The following EQU statements define the xdata page used for pdata
                      60     ;  variables. The EQU PPAGE must conform with the PPAGE control used
                      61     ;  in the linker invocation.
                      62     ;
  0000                63     PPAGEENABLE     EQU     0       ; set to 1 if pdata object are used.
  0000                64     PPAGE           EQU     0       ; define PPAGE number.
                      65     ;
                      66     ;------------------------------------------------------------------------------
                      67     
                      68     
                      69                     NAME    ?C_STARTUP
                      70     
  00C0                71             P4      EQU     0C0H
  00AE                72             WDKEY EQU 0AEH
                      73             
                      74     ?C_C51STARTUP   SEGMENT   CODE
                      75     
                      76     ;?STACK         SEGMENT   IDATA
                      77     ;               RSEG    ?STACK
                      78     
                      79     ;       DSEG    AT      52H
                      80     ;?STACK:     DS      2eH
----                  81             ISEG    AT      0c0H
00C0                  82     ?STACK:     DS      40H
                      83     
                      84     
                      85                     EXTRN CODE (?C_START)
                      86                     PUBLIC  ?C_STARTUP
                      87     
----                  88                     CSEG    AT      0
0000 020000   F       89     ?C_STARTUP:     LJMP    STARTUP1
                      90     
----                  91                     RSEG    ?C_C51STARTUP
                      92     
0000                  93     STARTUP1:
                      94     ;               ANL     P1,#00H         ;清P1,P3口
                      95     ;               ORL     P3,#0FFH
                      96     ;               ORL     P4,#0FFH
                      97     ;               SETB P1.2
                      98     ;               SETB P1.3
                      99     ;               CLR P3.7
                     100     ;               CLR P3.4
0000 75AE55          101                     MOV     WDKEY,#55H
                     102     
                     103     ;               MOV     DPTR,#0FE04H    ;PA口
                     104     ;               MOV     A,#07FH
                     105     ;               MOVX    @DPTR,A
                     106     ;               MOV     A,#0FFH
                     107     ;               MOV     DPTR,#0FE06H
                     108     ;               MOVX    @DPTR,A
                     109     ;               MOV     DPTR,#0FE0CH
                     110     ;               MOVX    @DPTR,A
                     111                     
                     112     ;               MOV     DPTR,#0FE05H    ;PB口
                     113     ;               MOV     A,#0FBH
                     114     ;               MOVX    @DPTR,A
                     115     ;               MOV     A,#017H
                     116     ;               MOV     DPTR,#0FE07H
                     117     ;               MOVX    @DPTR,A
                     118     ;               MOV     DPTR,#0FE0DH
                     119     ;               MOVX    @DPTR,A
                     120     
                     121     ;               MOV     DPTR,#0FE12H    ;PC口
                     122     ;               MOV     A,#0FFH
                     123     ;               MOVX    @DPTR,A
                     124     ;               MOV     DPTR,#0FE14H
A51 MACRO ASSEMBLER  STARTUP                                                              09/22/2005 17:15:32 PAGE     3

⌨️ 快捷键说明

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