📄 dscr.lst
字号:
A51 MACRO ASSEMBLER DSCR 12/08/2004 16:34:05 PAGE 1
MACRO ASSEMBLER A51 V7.01
OBJECT MODULE PLACED IN DSCR.OBJ
ASSEMBLER INVOKED BY: c:\Keil\C51\BIN\A51.EXE DSCR.A51 SET(SMALL) DEBUG EP
LOC OBJ LINE SOURCE
1 ;;-----------------------------------------------------------------------------
2 ;; File: dscr.a51
3 ;; Contents: This file contains descriptor data tables.
4 ;;
5 ;; Copyright (c) 1997 AnchorChips, Inc. All rights reserved
6 ;;-----------------------------------------------------------------------------
7
0001 8 DSCR_DEVICE equ 1 ;; Descriptor type: Device
0002 9 DSCR_CONFIG equ 2 ;; Descriptor type: Configuration
0003 10 DSCR_STRING equ 3 ;; Descriptor type: String
0004 11 DSCR_INTRFC equ 4 ;; Descriptor type: Interface
0005 12 DSCR_ENDPNT equ 5 ;; Descriptor type: Endpoint
13
0000 14 ET_CONTROL equ 0 ;; Endpoint type: Control
0001 15 ET_ISO equ 1 ;; Endpoint type: Isochronous
0002 16 ET_BULK equ 2 ;; Endpoint type: Bulk
0003 17 ET_INT equ 3 ;; Endpoint type: Interrupt
18
19 public DeviceDscr, ConfigDscr, StringDscr, UserDscr
20
21 DSCR SEGMENT CODE
22
23 ;;-----------------------------------------------------------------------------
24 ;; Global Variables
25 ;;-----------------------------------------------------------------------------
---- 26 rseg DSCR ;; locate the descriptor table in on-part memory.
27
0000 12 28 DeviceDscr: db deviceDscrEnd-DeviceDscr ;; Descriptor length
0001 01 29 db DSCR_DEVICE ;; Decriptor type
0002 0001 30 dw 0001H ;; Specification Version (BCD)
0004 00 31 db 00H ;; Device class
0005 00 32 db 00H ;; Device sub-class
0006 00 33 db 00H ;; Device sub-sub-class
0007 40 34 db 64 ;; Maximum packet size
0008 4705 35 dw 4705H ;; Vendor ID
000A 0210 36 dw 0210H ;; Product ID
000C 0100 37 dw 0100H ;; Product version ID
000E 01 38 db 1 ;; Manufacturer string index
000F 02 39 db 2 ;; Product string index
0010 00 40 db 0 ;; Serial number string index
0011 01 41 db 1 ;; Numder of configurations
0012 42 deviceDscrEnd:
43
0012 09 44 ConfigDscr: db ConfigDscrEnd-ConfigDscr ;; Descriptor length
0013 02 45 db DSCR_CONFIG ;; Descriptor type
0014 19 46 db 019h ;; Configuration + End Points length (LSB)
0015 00 47 db 00 ;; Configuration length (MSB)
0016 01 48 db 1 ;; Number of interfaces
0017 01 49 db 1 ;; Interface number
0018 03 50 db 3 ;; Configuration string
0019 A0 51 db 10100000b ;; Attributes (b7 - buspwr, b6 - selfpwr, b5 - rwu)
001A 00 52 db 0 ;; Power requirement (div 2 ma)
001B 53 ConfigDscrEnd:
54
001B 55 IntrfcDscr:
001B 09 56 db IntrfcDscrEnd-IntrfcDscr ;; Descriptor length
001C 04 57 db DSCR_INTRFC ;; Descriptor type
001D 00 58 db 0 ;; Zero-based index of this interface
A51 MACRO ASSEMBLER DSCR 12/08/2004 16:34:05 PAGE 2
001E 00 59 db 0 ;; Alternate setting
001F 01 60 db 1 ;; Number of end points
0020 FF 61 db 0ffH ;; Interface class
0021 00 62 db 00H ;; Interface sub class
0022 00 63 db 00H ;; Interface sub sub class
0023 04 64 db 4 ;; Interface descriptor string index
0024 65 IntrfcDscrEnd:
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
0024 99 EpI3Dscr:
0024 07 100 db EpI3DscrEnd-EpI3Dscr ;; Descriptor length
0025 05 101 db DSCR_ENDPNT ;; Descriptor type
0026 83 102 db 83H ;; Endpoint number, and direction
0027 02 103 db ET_BULK ;; Endpoint type
0028 40 104 db 40H ;; Maximun packet size (LSB)
0029 00 105 db 00H ;; Max packect size (MSB)
002A 00 106 db 00H ;; Polling interval
002B 107 EpI3DscrEnd:
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
A51 MACRO ASSEMBLER DSCR 12/08/2004 16:34:05 PAGE 3
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
002B 190 StringDscr:
A51 MACRO ASSEMBLER DSCR 12/08/2004 16:34:05 PAGE 4
191
002B 192 StringDscr0:
002B 04 193 db StringDscr0End-StringDscr0 ;; String descriptor length
002C 03 194 db DSCR_STRING
002D 0904 195 db 09H,04H
002F 196 StringDscr0End:
197
002F 198 StringDscr1:
002F 1A 199 db StringDscr1End-StringDscr1 ;; String descriptor length
0030 03 200 db DSCR_STRING
0031 4100 201 db 'A',00
0033 6E00 202 db 'n',00
0035 6300 203 db 'c',00
0037 6800 204 db 'h',00
0039 6F00 205 db 'o',00
003B 7200 206 db 'r',00
003D 2000 207 db ' ',00
003F 4300 208 db 'C',00
0041 6800 209 db 'h',00
0043 6900 210 db 'i',00
0045 7000 211 db 'p',00
0047 7300 212 db 's',00
0049 213 StringDscr1End:
214
0049 215 StringDscr2:
0049 1C 216 db StringDscr2End-StringDscr2 ;; Descriptor length
004A 03 217 db DSCR_STRING
004B 4500 218 db 'E',00
004D 5A00 219 db 'Z',00
004F 2D00 220 db '-',00
0051 5500 221 db 'U',00
0053 5300 222 db 'S',00
0055 4200 223 db 'B',00
0057 2000 224 db ' ',00
0059 4400 225 db 'D',00
005B 6500 226 db 'e',00
005D 7600 227 db 'v',00
005F 6900 228 db 'i',00
0061 6300 229 db 'c',00
0063 6500 230 db 'e',00
0065 231 StringDscr2End:
232
0065 233 UserDscr:
0065 0000 234 dw 0000H
235 end
A51 MACRO ASSEMBLER DSCR 12/08/2004 16:34:05 PAGE 5
SYMBOL TABLE LISTING
------ ----- -------
N A M E T Y P E V A L U E ATTRIBUTES
CONFIGDSCR . . . . C ADDR 0012H R SEG=DSCR
CONFIGDSCREND. . . C ADDR 001BH R SEG=DSCR
DEVICEDSCR . . . . C ADDR 0000H R SEG=DSCR
DEVICEDSCREND. . . C ADDR 0012H R SEG=DSCR
DSCR . . . . . . . C SEG 0067H REL=UNIT
DSCR_CONFIG. . . . N NUMB 0002H A
DSCR_DEVICE. . . . N NUMB 0001H A
DSCR_ENDPNT. . . . N NUMB 0005H A
DSCR_INTRFC. . . . N NUMB 0004H A
DSCR_STRING. . . . N NUMB 0003H A
EPI3DSCR . . . . . C ADDR 0024H R SEG=DSCR
EPI3DSCREND. . . . C ADDR 002BH R SEG=DSCR
ET_BULK. . . . . . N NUMB 0002H A
ET_CONTROL . . . . N NUMB 0000H A
ET_INT . . . . . . N NUMB 0003H A
ET_ISO . . . . . . N NUMB 0001H A
INTRFCDSCR . . . . C ADDR 001BH R SEG=DSCR
INTRFCDSCREND. . . C ADDR 0024H R SEG=DSCR
STRINGDSCR . . . . C ADDR 002BH R SEG=DSCR
STRINGDSCR0. . . . C ADDR 002BH R SEG=DSCR
STRINGDSCR0END . . C ADDR 002FH R SEG=DSCR
STRINGDSCR1. . . . C ADDR 002FH R SEG=DSCR
STRINGDSCR1END . . C ADDR 0049H R SEG=DSCR
STRINGDSCR2. . . . C ADDR 0049H R SEG=DSCR
STRINGDSCR2END . . C ADDR 0065H R SEG=DSCR
USERDSCR . . . . . C ADDR 0065H R SEG=DSCR
REGISTER BANK(S) USED: 0
ASSEMBLY COMPLETE. 0 WARNING(S), 0 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -