📄 dscr.lst
字号:
A51 MACRO ASSEMBLER DSCR 06/04/2006 20:12:24 PAGE 1
MACRO ASSEMBLER A51 V7.10
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
0006 13 DSCR_DEVQUAL equ 6 ;; Descriptor type: Device Qualifier
14
0012 15 DSCR_DEVICE_LEN equ 18
0009 16 DSCR_CONFIG_LEN equ 9
0009 17 DSCR_INTRFC_LEN equ 9
0007 18 DSCR_ENDPNT_LEN equ 7
000A 19 DSCR_DEVQUAL_LEN equ 10
20
0000 21 ET_CONTROL equ 0 ;; Endpoint type: Control
0001 22 ET_ISO equ 1 ;; Endpoint type: Isochronous
0002 23 ET_BULK equ 2 ;; Endpoint type: Bulk
0003 24 ET_INT equ 3 ;; Endpoint type: Interrupt
25
26 public DeviceDscr, DeviceQualDscr, HighSpeedConfigDscr, FullSpeedConfigDscr, StringDsc
r, UserDscr
27
28 DSCR SEGMENT CODE
29
30 ;;-----------------------------------------------------------------------------
31 ;; Global Variables
32 ;;-----------------------------------------------------------------------------
---- 33 rseg DSCR ;; locate the descriptor table in on-part memory.
34
0000 35 DeviceDscr:
0000 12 36 db DSCR_DEVICE_LEN ;; Descriptor length
0001 01 37 db DSCR_DEVICE ;; Decriptor type
0002 0002 38 dw 0002H ;; Specification Version (BCD)
0004 00 39 db 00H ;; Device class
0005 00 40 db 00H ;; Device sub-class
0006 00 41 db 00H ;; Device sub-sub-class
0007 40 42 db 64 ;; Maximum packet size
0008 4705 43 dw 4705H ;; Vendor ID
000A 0210 44 dw 0210H ;; Product ID (Sample Device)
000C 0000 45 dw 0000H ;; Product version ID
000E 01 46 db 1 ;; Manufacturer string index
000F 02 47 db 2 ;; Product string index
0010 00 48 db 0 ;; Serial number string index
0011 01 49 db 1 ;; Number of configurations
50
0012 51 DeviceQualDscr:
0012 0A 52 db DSCR_DEVQUAL_LEN ;; Descriptor length
0013 06 53 db DSCR_DEVQUAL ;; Decriptor type
0014 0002 54 dw 0002H ;; Specification Version (BCD)
0016 00 55 db 00H ;; Device class
0017 00 56 db 00H ;; Device sub-class
0018 00 57 db 00H ;; Device sub-sub-class
A51 MACRO ASSEMBLER DSCR 06/04/2006 20:12:24 PAGE 2
0019 40 58 db 64 ;; Maximum packet size
001A 01 59 db 1 ;; Number of configurations
001B 00 60 db 0 ;; Reserved
61
001C 62 HighSpeedConfigDscr:
001C 09 63 db DSCR_CONFIG_LEN ;; Descriptor length
001D 02 64 db DSCR_CONFIG ;; Descriptor type
001E 20 65 db (HighSpeedConfigDscrEnd-HighSpeedConfigDscr) mod 256 ;; Total Length (LSB)
001F 00 66 db (HighSpeedConfigDscrEnd-HighSpeedConfigDscr) / 256 ;; Total Length (MSB)
0020 01 67 db 1 ;; Number of interfaces
0021 01 68 db 1 ;; Configuration number
0022 00 69 db 0 ;; Configuration string
0023 A0 70 db 10100000b ;; Attributes (b7 - buspwr, b6 - selfpwr, b5 - rwu)
0024 32 71 db 50 ;; Power requirement (div 2 ma)
72
73 ;; Interface Descriptor
0025 09 74 db DSCR_INTRFC_LEN ;; Descriptor length
0026 04 75 db DSCR_INTRFC ;; Descriptor type
0027 00 76 db 0 ;; Zero-based index of this interface
0028 00 77 db 0 ;; Alternate setting
0029 02 78 db 2 ;; Number of end points
002A FF 79 db 0ffH ;; Interface class
002B 00 80 db 00H ;; Interface sub class
002C 00 81 db 00H ;; Interface sub sub class
002D 00 82 db 0 ;; Interface descriptor string index
83
84 ;; Endpoint Descriptor
002E 07 85 db DSCR_ENDPNT_LEN ;; Descriptor length
002F 05 86 db DSCR_ENDPNT ;; Descriptor type
0030 02 87 db 02H ;; Endpoint number, and direction
0031 02 88 db ET_BULK ;; Endpoint type
0032 00 89 db 00H ;; Maximun packet size (LSB)
0033 02 90 db 02H ;; Max packect size (MSB)
0034 00 91 db 00H ;; Polling interval
92
93 ;; Endpoint Descriptor
0035 07 94 db DSCR_ENDPNT_LEN ;; Descriptor length
0036 05 95 db DSCR_ENDPNT ;; Descriptor type
0037 86 96 db 86H ;; Endpoint number, and direction
0038 02 97 db ET_BULK ;; Endpoint type
0039 00 98 db 00H ;; Maximun packet size (LSB)
003A 02 99 db 02H ;; Max packect size (MSB)
003B 00 100 db 00H ;; Polling interval
101
003C 102 HighSpeedConfigDscrEnd:
103
003C 104 FullSpeedConfigDscr:
003C 09 105 db DSCR_CONFIG_LEN ;; Descriptor length
003D 02 106 db DSCR_CONFIG ;; Descriptor type
003E 20 107 db (FullSpeedConfigDscrEnd-FullSpeedConfigDscr) mod 256 ;; Total Length (LSB)
003F 00 108 db (FullSpeedConfigDscrEnd-FullSpeedConfigDscr) / 256 ;; Total Length (MSB)
0040 01 109 db 1 ;; Number of interfaces
0041 01 110 db 1 ;; Configuration number
0042 00 111 db 0 ;; Configuration string
0043 A0 112 db 10100000b ;; Attributes (b7 - buspwr, b6 - selfpwr, b5 - rwu)
0044 32 113 db 50 ;; Power requirement (div 2 ma)
114
115 ;; Interface Descriptor
0045 09 116 db DSCR_INTRFC_LEN ;; Descriptor length
0046 04 117 db DSCR_INTRFC ;; Descriptor type
0047 00 118 db 0 ;; Zero-based index of this interface
0048 00 119 db 0 ;; Alternate setting
0049 02 120 db 2 ;; Number of end points
004A FF 121 db 0ffH ;; Interface class
004B 00 122 db 00H ;; Interface sub class
004C 00 123 db 00H ;; Interface sub sub class
A51 MACRO ASSEMBLER DSCR 06/04/2006 20:12:24 PAGE 3
004D 00 124 db 0 ;; Interface descriptor string index
125
126 ;; Endpoint Descriptor
004E 07 127 db DSCR_ENDPNT_LEN ;; Descriptor length
004F 05 128 db DSCR_ENDPNT ;; Descriptor type
0050 01 129 db 01H ;; Endpoint number, and direction
0051 02 130 db ET_BULK ;; Endpoint type
0052 40 131 db 40H ;; Maximun packet size (LSB)
0053 00 132 db 00H ;; Max packect size (MSB)
0054 00 133 db 00H ;; Polling interval
134
135 ;; Endpoint Descriptor
0055 07 136 db DSCR_ENDPNT_LEN ;; Descriptor length
0056 05 137 db DSCR_ENDPNT ;; Descriptor type
0057 81 138 db 81H ;; Endpoint number, and direction
0058 02 139 db ET_BULK ;; Endpoint type
0059 40 140 db 40H ;; Maximun packet size (LSB)
005A 00 141 db 00H ;; Max packect size (MSB)
005B 00 142 db 00H ;; Polling interval
143
005C 144 FullSpeedConfigDscrEnd:
145
005C 146 StringDscr:
147
005C 148 StringDscr0:
005C 04 149 db StringDscr0End-StringDscr0 ;; String descriptor length
005D 03 150 db DSCR_STRING
005E 0904 151 db 09H,04H
0060 152 StringDscr0End:
153
0060 154 StringDscr1:
0060 10 155 db StringDscr1End-StringDscr1 ;; String descriptor length
0061 03 156 db DSCR_STRING
0062 5900 157 db 'Y',00
0064 4300 158 db 'C',00
0066 4C00 159 db 'L',00
0068 5400 160 db 'T',00
006A 6500 161 db 'e',00
006C 6300 162 db 'c',00
006E 6800 163 db 'h',00
0070 164 StringDscr1End:
165
0070 166 StringDscr2:
0070 16 167 db StringDscr2End-StringDscr2 ;; Descriptor length
0071 03 168 db DSCR_STRING
0072 4500 169 db 'E',00
0074 5A00 170 db 'Z',00
0076 2D00 171 db '-',00
0078 5500 172 db 'U',00
007A 5300 173 db 'S',00
007C 4200 174 db 'B',00
007E 2000 175 db ' ',00
0080 4600 176 db 'F',00
0082 5800 177 db 'X',00
0084 3200 178 db '2',00
0086 179 StringDscr2End:
180
0086 181 UserDscr:
0086 0000 182 dw 0000H
183 end
A51 MACRO ASSEMBLER DSCR 06/04/2006 20:12:24 PAGE 4
SYMBOL TABLE LISTING
------ ----- -------
N A M E T Y P E V A L U E ATTRIBUTES
DEVICEDSCR . . . . . . C ADDR 0000H R SEG=DSCR
DEVICEQUALDSCR . . . . C ADDR 0012H R SEG=DSCR
DSCR . . . . . . . . . C SEG 0088H REL=UNIT
DSCR_CONFIG. . . . . . N NUMB 0002H A
DSCR_CONFIG_LEN. . . . N NUMB 0009H A
DSCR_DEVICE. . . . . . N NUMB 0001H A
DSCR_DEVICE_LEN. . . . N NUMB 0012H A
DSCR_DEVQUAL . . . . . N NUMB 0006H A
DSCR_DEVQUAL_LEN . . . N NUMB 000AH A
DSCR_ENDPNT. . . . . . N NUMB 0005H A
DSCR_ENDPNT_LEN. . . . N NUMB 0007H A
DSCR_INTRFC. . . . . . N NUMB 0004H A
DSCR_INTRFC_LEN. . . . N NUMB 0009H A
DSCR_STRING. . . . . . N NUMB 0003H A
ET_BULK. . . . . . . . N NUMB 0002H A
ET_CONTROL . . . . . . N NUMB 0000H A
ET_INT . . . . . . . . N NUMB 0003H A
ET_ISO . . . . . . . . N NUMB 0001H A
FULLSPEEDCONFIGDSCR. . C ADDR 003CH R SEG=DSCR
FULLSPEEDCONFIGDSCREND C ADDR 005CH R SEG=DSCR
HIGHSPEEDCONFIGDSCR. . C ADDR 001CH R SEG=DSCR
HIGHSPEEDCONFIGDSCREND C ADDR 003CH R SEG=DSCR
STRINGDSCR . . . . . . C ADDR 005CH R SEG=DSCR
STRINGDSCR0. . . . . . C ADDR 005CH R SEG=DSCR
STRINGDSCR0END . . . . C ADDR 0060H R SEG=DSCR
STRINGDSCR1. . . . . . C ADDR 0060H R SEG=DSCR
STRINGDSCR1END . . . . C ADDR 0070H R SEG=DSCR
STRINGDSCR2. . . . . . C ADDR 0070H R SEG=DSCR
STRINGDSCR2END . . . . C ADDR 0086H R SEG=DSCR
USERDSCR . . . . . . . C ADDR 0086H 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 + -