?? des4.lst
字號:
"File: DES4.ASM Holtek Cross-Assembler Version 2.86 Page 1
1 0000 ;INCLUDE def.inc
2 0000
3 0000 Descript .Section at 0F00h 'code'
4 0000
5 0000 ;-----BEGIN (Standard descriptor)
6 0000
7 0000 ;--------------------------------------------------------------------------
8 0000 ;Device descriptor
9 0000 ;*******************************************************************************
10 0000 DeviceD:
11 0000 0112 0110 dw 00112H, 00110H, 00000H, 00800H, 01241H, 003f00h, 03fe0h,00200H, 00201H
0000 0800 1241 3F00 3FE0 0200 0201
12 0009 0100 DW 00100H
13 000A
14 000A ;bLengthD: DW 0012H ;Size of this descriptor in bytes (18)
15 000A ;bDescriptorTypeD: DW 0001H ;Device descriptor type (1)
16 000A ;bcdUSB: DW 0001H, 0001H ;USB specification release Number (1.0)
17 000A ;bDeviceClass: DW 0000H ;Class code (assigned by USB) (0 ?)
18 000A ;bDeviceSubClass: DW 0000H ;Subclass code
19 000A ;bDeviceProtocol: DW 0000H ;Protocol code
20 000A ;wMaxPacketSize0: DW 0008H ;Maximum packet size for endpoint zero (8)
21 000A ;idVendor: DW 0012H, 0041H ;Vendor ID (assigned by USB) (?)
22 000A ;idProduct: DW 00F0H, 0000H ;Product ID (assigned by manufacturer) (?)
23 000A ;bcdDevice: DW 0000H, 0001H ;Device release number (1.0 ?)
24 000A ;iManufacturer: DW 0001H ;Index of string descriptor (Manufacturer) (?)
25 000A ;iProduct: DW 0002H ;Index of string descriptor (Product) (?)
26 000A ;iSerialNumber: DW 0000H ;Index of string descriptor (Serial Number) (?)
27 000A ;iNumConfigurations: DW 0001H ;Number of possible configuration
28 000A ;-----------------------------------------------------------------------------
29 000A ;*******************************************************************************
30 000A ;Configuration descriptor
31 000A ConfigurationD:
32 000A 0209 DW 00209H
33 000B Wtotallength:
34 000B 003B DW 003bH
35 000C bNumberInterface:
36 000C 0102 3F00 DW 00102H, 03f00h, 032a0h
32A0
37 000F ;bLengthC: DW 0009H ;Size of this descriptor in bytes (9)
38 000F ;bDescriptorTypeC: DW 0002H ;Configur descriptor type (2)
39 000F ;wTotalLength: DW 003bH, 0000H
40 000F ; ;Total length of data return for this configuration.
41 000F ; ;Include: Configuration,Interface,Endpoint, and HID)
42 000F ; ; 9 9 7 9
43 000F ;bNumberInterface: DW 0002H ;Number of interfaces supported by this config.
44 000F ;bConfigurationValue:DW 0001H ;The value set by Set configuration (1 ?)
45 000F ;;According to the length of previous string(0 means no support)
46 000F ;bConfiguration: DW 0000H ;Index of string descriptor (Configuration) (0 ?)
47 000F ;bAttributes: DW 00A0H ;D7:BusPowered,D6:Selfpowered,D5:RemoteWakeup
48 000F ;MaxPower: DW 0032H ;Maximum power (50 x 2 mA ?)
49 000F ;-----------------------------------------------------------------------------
50 000F ;*******************************************************************************
51 000F ;Interface descriptor
52 000F InterfaceD_1:
53 000F 0409 0001 DW 00409H, 00001H, 00301H, 00201H, 00000H
0301 0201 0000
54 0014 ;bLengthI_0_1: DW 0009H ;Size of this descriptor in bytes (9)
55 0014 ;bDescriptorTypeI_0_1: DW 0004H ;Configur descriptor type (4)
56 0014 ;bInterfaceNumber_0_1: DW 0001H ;Number of interface (Zero-based 0)
"File: DES4.ASM Holtek Cross-Assembler Version 2.86 Page 2
57 0014 ;bAlternateSetting_0_1: DW 0000H ;Value used to select alternate setting (0)
58 0014 ;bNumEndpoints_0_1: DW 0001H ;Number of endpoints use by this interface (1)
59 0014 ;bInterfaceClass_0_1: DW 0003H ;Class code (HID code assigned by USB) (3)
60 0014 ;bInterfaceSubClass_0_1: DW 0001H ;Subclass code (Boot interface subclass)
61 0014 ;bInterfaceProtocol_0_1: DW 0002H ;Protocol coed (MOUSE) (1)
62 0014 ;;According to the length of previous string(0 means no support)
63 0014 ;iInterface_0_1: DW 0000H ;Index of string descriptor (Interface) (5 ?)
64 0014 ;-----------------------------------------------------------------------------
65 0014 InterfaceD_2:
66 0014 InterfaceD_0:
67 0014 0409 0000 DW 00409H, 00000H, 00301h, 00101H, 00000H
0301 0101 0000
68 0019 ;bLengthI_0_1: DW 0009H ;Size of this descriptor in bytes (9)
69 0019 ;bDescriptorTypeI_0_1: DW 0004H ;Configur descriptor type (4)
70 0019 ;bInterfaceNumber_0_1: DW 0000H ;Number of interface (Zero-based 0)
71 0019 ;bAlternateSetting_0_1: DW 0000H ;Value used to select alternate setting (0)
72 0019 ;bNumEndpoints_0_1: DW 0001H ;Number of endpoints use by this interface (1)
73 0019 ;bInterfaceClass_0_1: DW 0003H ;Class code (HID code assigned by USB) (3)
74 0019 ;bInterfaceSubClass_0_1: DW 0001H ;Subclass code (Boot interface subclass)
75 0019 ;bInterfaceProtocol_0_1: DW 0001H ;Protocol coed (kB) (1)
76 0019 ;;According to the length of previous string(0 means no support)
77 0019 ;iInterface_0_1: DW 0000H ;Index of string descriptor (Interface) (5 ?)
78 0019 ;-----------------------------------------------------------------------------
79 0019 ;*******************************************************************************
80 0019 ;Endpoint descriptor
81 0019 EndpointD_1:
82 0019 0507 0382 DW 00507H, 00382H, 00008H, 0000AH
0008 000A
83 001D ;bLengthE_0_1: DW 0007H ;Size of this descriptor in bytes (9)
84 001D ;bDescriptorTypeE_0_1: DW 0005H ;Endpoint descriptor type (5)
85 001D ;bEndpointAddress_0_1: DW 0082H ;The address of endpoint (81h)
86 001D ; ;bit 0..3: The endpoint number 0001
87 001D ; ;bit 4..6: reserved 000
88 001D ; ;bit 7 : direction (0:Out/1:In) 1
89 001D ;bmAttribute_0_1: DW 0003H ;Endpoint Attribute (03h)
90 001D ; ;bit 0..1: transfer type
91 001D ; ; 00 Control
92 001D ; ; 01 Isochronous
93 001D ; ; 10 Bulk
94 001D ; ; 11 Interrupt
95 001D ; ;All other reserved
96 001D ;wMaxPacketSize_0_1: DW 0008H, 0000H ;Maximum packet size (8)
97 001D ;
98 001D ;;bInterval_0: DW 0008H ;Interval for polling endpoint (8 ms)
99 001D ;bInterval_0_1: DW PollingTime ;Interval for polling endpoint (8 ms)
100 001D ;-------------------------------------------------------------------------------
101 001D EndpointD_2:
102 001D EndpointD_0:
103 001D 0507 0381 DW 00507H, 00381H, 00008H, 0000AH
0008 000A
104 0021 ;bLengthE_0_1: DW 0007H ;Size of this descriptor in bytes (9)
105 0021 ;bDescriptorTypeE_0_1: DW 0005H ;Endpoint descriptor type (5)
106 0021 ;bEndpointAddress_0_1: DW 0081H ;The address of endpoint (81h)
107 0021 ; ;bit 0..3: The endpoint number 0001
108 0021 ; ;bit 4..6: reserved 000
109 0021 ; ;bit 7 : direction (0:Out/1:In) 1
110 0021 ;bmAttribute_0_1: DW 0003H ;Endpoint Attribute (03h)
111 0021 ; ;bit 0..1: transfer type
112 0021 ; ; 00 Control
113 0021 ; ; 01 Isochronous
"File: DES4.ASM Holtek Cross-Assembler Version 2.86 Page 3
114 0021 ; ; 10 Bulk
115 0021 ; ; 11 Interrupt
116 0021 ; ;All other reserved
117 0021 ;wMaxPacketSize_0_1: DW 0008H, 0000H ;Maximum packet size (8)
118 0021 ;bInterval_0: DW 0008H ;Interval for polling endpoint (8 ms)
119 0021 ;*******************************************************************************
120 0021 ;-----------------------------------------------------------------------------
121 0021
122 0021 ;-----BIGIN (Class specific discriptor)
123 0021 ;-----------------------------------------------------------------------------
124 0021 ;HID descriptor
125 0021 HID_1:
126 0021 2109 0110 DW 02109H, 00110H, 00100H, 03422H, 00000H
0100 3422 0000
127 0026 ;bLengthH_0: DW 0009H ;Size of this descriptor in bytes (8)
128 0026 ;bDescriptor_0: DW 0021H ;HID Descriptor type (1) (MemPhis)
129 0026 ;bDescriptor_0: DW 0001H ;HID Descriptor type (1)
130 0026 ;bcdHID_0: DW 0001H, 0001H ;HID Class spec. release number (1.00)
131 0026 ;bCountryCode_0: DW 0000H ;Hardware target country
132 0026 ;bNumDescriptors_0: DW 0001h ;Number of HID class descriptors to follow
133 0026 ;bDescriptorType_0: DW 0022H ;Entity descriptor type
134 0026 ;wEntityLength_0: DW 0034h
135 0026 ;-----------------------------------------------------------------------------
136 0026 HID_2:
137 0026 ;Entity_length:
138 0026 ;dw 01D22H, 00000H
139 0026 ;-----------------------------------------------------------------------------
140 0026 HID_0:
141 0026 2109 0110 DW 02109H, 00110H, 00100H, 03F22H, 0003fH
0100 3F22 003F
142 002B ;bLengthH_0: DW 0009H ;Size of this descriptor in bytes (8)
143 002B ;bDescriptor_0: DW 0021H ;HID Descriptor type (1) (MemPhis)
144 002B ;bDescriptor_0: DW 0001H ;HID Descriptor type (1)
145 002B ;bcdHID_0: DW 0000H, 0001H ;HID Class spec. release number (1.00)
146 002B ;bCountryCode_0: DW 0000H ;Hardware target country
147 002B ;bNumDescriptors_0: DW 0001h ;Number of HID class descriptors to follow
148 002B ;bDescriptorType_0: DW 0022H ;Entity descriptor type
149 002B ;wEntityLength_0: DW 003fh
150 002B ;-----------------------------------------------------------------------------
151 002B ;*******************************************************************************
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -