📄 startup33.lst
字号:
A51 MACRO ASSEMBLER STARTUP33 07/11/2005 15:30:33 PAGE 1
MACRO ASSEMBLER A51 V7.10
OBJECT MODULE PLACED IN Startup33.OBJ
ASSEMBLER INVOKED BY: C:\keil\C51\BIN\A51.EXE Startup33.a51 SET(SMALL) DEBUG EP
LOC OBJ LINE SOURCE
1 $nomod51
2 ;------------------------------------------------------------------------------
3 ; startup33.a51
4 ;
5 ; Version:
6 ; August 2004 Ver 2.0 - Updated include file names, modified comments.
7 ;
8 ; Dependencies:
9 ; uPSD_5V and FREQ_OSC are used as input parameters to set up the BUSCON
10 ; register appropriately for proper uPSD3300 operation. They are set in the
11 ; header file, upsd3300_hardware.h, for the target processor.
12 ;
13 ; Description:
14 ; This code is executed after a reset. Besides the usual C51 startup
15 ; settings, specific uPSD3300 initializations are done here such as the
16 ; BUSCON register. Other uPSD3300 initializations can be added here. When
17 ; the startup code execution is complete, this code jumps to ?C_START that
18 ; is typically the main() function in the C code.
19 ;
20 ;
21 ; Copyright (c) 2004 STMicroelectronics Inc.
22 ;
23 ; This example demo code is provided as is and has no warranty,
24 ; implied or otherwise. You are free to use/modify any of the provided
25 ; code at your own risk in your applications with the expressed limitation
26 ; of liability (see below) so long as your product using the code contains
27 ; at least one uPSD product (device).
28 ;
29 ; LIMITATION OF LIABILITY: NEITHER STMicroelectronics NOR ITS VENDORS OR
30 ; AGENTS SHALL BE LIABLE FOR ANY LOSS OF PROFITS, LOSS OF USE, LOSS OF DATA,
31 ; INTERRUPTION OF BUSINESS, NOR FOR INDIRECT, SPECIAL, INCIDENTAL OR
32 ; CONSEQUENTIAL DAMAGES OF ANY KIND WHETHER UNDER THIS AGREEMENT OR
33 ; OTHERWISE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
34 ;------------------------------------------------------------------------------
35
36 ;#include "upsd3300_hardware.h"
+1 37
+1 38
+1 39
+1 40
+1 41
+1 42
+1 43
+1 44
+1 45
+1 46
+1 47
+1 48
+1 49
+1 50
+1 51
+1 52
+1 53
+1 54
+1 55
+1 56
+1 57
+1 58
A51 MACRO ASSEMBLER STARTUP33 07/11/2005 15:30:33 PAGE 2
+1 59
+1 60
+1 61
+1 62
+1 63
+1 64
+1 65
+1 66
+1 67
+1 68
+1 69
+1 70
+1 71
+1 72
+1 73
+1 74
+1 75
+1 76
+1 77
+1 78
+1 79
+1 80
+1 81
+1 82
+1 83
+1 84
+1 85
+1 86
+1 87
+1 88
+1 89
+1 90
+1 91
+1 92
+1 93
+1 94
+1 95
+1 96
+1 97
+1 98
+1 99
+1 100
+1 101
+1 102
+1 103
+1 104
+1 105
+1 106
+1 107
+1 108
+1 109
+1 110
+1 111
+1 112
+1 113
+1 114
+1 115
+1 116
+1 117
+1 118
+1 119
+1 120
+1 121
+1 122
+1 123
+1 124
A51 MACRO ASSEMBLER STARTUP33 07/11/2005 15:30:33 PAGE 3
+1
+1
+1
+1
+1
+1
+1
+1
+1 133
+1 134
+1 135
+1 136
+1
+1
+1
+1
+1
+1
+1
+1
+1 145
+1 146
+1 147
+1 148
+1 149
+1 150
+1 151
+1 152
+1 153
+1 154
+1 155
+1 156
+1 157
+1 158
+1 159
+1 160
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1 172
173
174
175 ; User-defined Power-On Initialization of Memory (Clear Memory)
176 ;
177 ; With the following EQU statements the initialization of memory
178 ; at processor reset can be defined:
179
180 ; ; the absolute start-address of IDATA memory is always 0
0100 181 IDATALEN EQU 100H ; the length of IDATA memory in bytes.
182
183 ; NOTE: The length equates for XDATALEN and PDATALEN should be changed to
184 ; non-zero values indicating the amount of XDATA and/or PDATA
185 ; memory to be initialized to 0x00. The start address equates
186 ; (XDATASTART and PDATASTART) must be set to the respective starting
187 ; addresses as mapped in PSDsoft if the memory is to be initialized.
188
0000 189 XDATASTART EQU 0H ; the absolute start-address of XDATA memory
0000 190 XDATALEN EQU 0H ; the length of XDATA memory in bytes.
A51 MACRO ASSEMBLER STARTUP33 07/11/2005 15:30:33 PAGE 4
191
0000 192 PDATASTART EQU 0H ; the absolute start-address of PDATA memory
0000 193 PDATALEN EQU 0H ; the length of PDATA memory in bytes.
194
195 ; Notes: The IDATA space overlaps physically the DATA and BIT areas of the
196 ; 8051 CPU. At minimum the memory space occupied from the C51
197 ; run-time routines must be set to zero.
198
199
200 ;------------------------------------------------------------------------------
201 ;
202 ; Reentrant Stack Initilization
203 ;
204 ; The following EQU statements define the stack pointer for reentrant
205 ; functions and initialized it:
206 ;
207 ; Stack Space for reentrant functions in the SMALL model.
0000 208 IBPSTACK EQU 0 ; set to 1 if small reentrant is used.
0100 209 IBPSTACKTOP EQU 0FFH+1 ; set top of stack to highest location+1.
210 ;
211 ; Stack Space for reentrant functions in the LARGE model.
0000 212 XBPSTACK EQU 0 ; set to 1 if large reentrant is used.
0000 213 XBPSTACKTOP EQU 0FFFFH+1; set top of stack to highest location+1.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -