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

📄 des.lst

📁 HT82J97滑鼠DEMO程序
💻 LST
字号:
"File: DES.ASM       Holtek Cross-Assembler  Version 2.86      Page 1


   1  0000              #include "usbrf1.inc"


   2  0000              ;Descript		.Section   at   0f50h		'code'	
   3  0000              Descript		.Section   at   00700h		'code'	
   4  0000              
   5  0000              ;Device_Length		equ		12H (USBRF.INC)
   6  0000              DeviceD:
   7  0000  0112 0110   dw		00112H, 00110H,	00000H,	00800H,	004d9H, 003f00h, 03ff0h,00100H,	00201H
            0000 0800 04D9 3F00 3FF0 0100 0201
   8  0009  0100        DW		00100H
   9  000A              
  10  000A              ;bLengthD:           DW  0012H   ;Size of this descriptor in bytes (18)
  11  000A              ;bDescriptorTypeD:   DW  0001H   ;Device descriptor type (1)
  12  000A              ;bcdUSB:             DW  0010H, 0001H ;USB specification release Number (1.0)
  13  000A              ;bDeviceClass:       DW  0000H   ;Class code (assigned by USB) (0 ?)
  14  000A              ;bDeviceSubClass:    DW  0000H   ;Subclass code
  15  000A              ;bDeviceProtocol:    DW  0000H   ;Protocol code
  16  000A              ;wMaxPacketSize0:    DW  0008H   ;Maximum packet size for endpoint zero (8)
  17  000A              ;idVendor:           DW  0012H, 0041H ;Vendor ID (assigned by USB) (?)
  18  000A              ;idProduct:          DW  00e0H, 0001H ;Product ID (assigned by manufacturer) (?)
  19  000A              ;bcdDevice:          DW  0000H, 0001H ;Device release number (1.0 ?)
  20  000A              ;iManufacturer:      DW  0001H   ;Index of string descriptor (Manufacturer) (?)
  21  000A              ;iProduct:           DW  0002H   ;Index of string descriptor (Product) (?)
  22  000A              ;iSerialNumber:      DW  0000H   ;Index of string descriptor (Serial Number) (?)
  23  000A              ;iNumConfigurations: DW  0001H   ;Number of possible configuration
  24  000A              ;-----------------------------------------------------------------------------
  25  000A              
  26  000A              ;*******************************************************************************
  27  000A              ConfigurationD:
  28  000A  0209        DW		00209H		
  29  000B              
  30  000B              ;config_Length 		equ		22H (USBRF.INC)
  31  000B              Wtotallength:
  32  000B  0022        DW		00022H		
  33  000C              ;;DW	00029H
  34  000C              ;INTERFACE_NO		EQU		1 (USBRF.INC)
  35  000C              bNumberInterface:
  36  000C  0101 3F00   DW		00101H,	03f00h, 03280h		
            3280
  37  000F              
  38  000F              ;bLengthC:           DW  0009H   ;Size of this descriptor in bytes (9)
  39  000F              ;bDescriptorTypeC:   DW  0002H   ;Configur descriptor type (2)
  40  000F              ;wTotalLength:       DW  0022H, 0000H
  41  000F              ;                    ;Total length of data return for this configuration.
  42  000F              ;                    ;Include: Configuration,Interface,Endpoint, and HID)
  43  000F              ;                    ;               9           9       7         9
  44  000F              ;bNumberInterface:   DW  0001H   ;Number of interfaces supported by this config.
  45  000F              ;bConfigurationValue:DW  0001H   ;The value set by Set configuration (1 ?)
  46  000F              ;;According to the length of previous string(0 means no support)
  47  000F              ;bConfiguration:     DW  0000H   ;Index of string descriptor (Configuration) (0 ?)
  48  000F              ;bAttributes:        DW  0080H   ;D7:BusPowered,D6:Selfpowered,D5:RemoteWakeup
  49  000F              ;MaxPower:           DW  0032H   ;Maximum power (50 x 2 mA ?)
  50  000F              
  51  000F              ;-----------------------------------------------------------------------------
  52  000F              InterfaceD_2:
  53  000F              InterfaceD_1:
  54  000F              InterfaceD_0:
  55  000F  0409 0000   DW		00409H,	00000H,	00301h,	00000H,	03F00H 	;9
"File: DES.ASM       Holtek Cross-Assembler  Version 2.86      Page 2

            0301 0000 3F00
  56  0014              
  57  0014              ;bLengthI_0_1:           DW  0009H   ;Size of this descriptor in bytes (9)
  58  0014              ;bDescriptorTypeI_0_1:   DW  0004H   ;Configur descriptor type (4)
  59  0014              ;bInterfaceNumber_0_1:   DW  0000H   ;Number of interface (Zero-based 0)
  60  0014              ;bAlternateSetting_0_1:  DW  0000H   ;Value used to select alternate setting (0)
  61  0014              ;bNumEndpoints_0_1:      DW  0001H   ;Number of endpoints use by this interface (1)
  62  0014              ;bInterfaceClass_0_1:    DW  0003H   ;Class code (HID code assigned by USB) (3)
  63  0014              ;bInterfaceSubClass_0_1: DW  0000H   ;Subclass code (0:no subclass 1:Boot interface subclass)
  64  0014              ;bInterfaceProtocol_0_1: DW  0000H   ;Protocol code (0:none, 1:KB, 2:Mouse) (0)
  65  0014              ;;According to the length of previous string(0 means no support)
  66  0014              ;iInterface_0_1:         DW  0000H   ;Index of string descriptor (Interface) (5 ?)
  67  0014              
  68  0014              ;-----------------------------------------------------------------------------
  69  0014              ;HID_LENGTH	EQU 9 (USBRF1.INC)
  70  0014              ;ENTITY_LENGTH EQU 2fH
  71  0014              HID_2:
  72  0014              HID_1:
  73  0014              HID_0:
  74  0014  2109 0110   DW		02109H,	00110H,	00100H,	03f22H, 0002fH ;9
            0100 3F22 002F
  75  0019              
  76  0019              ;bLengthH_0:           DW  0009H   ;Size of this descriptor in bytes (8)
  77  0019              ;bDescriptor_0:        DW  0021H   ;HID Descriptor type (1)  (MemPhis)
  78  0019              ;bcdHID_0:             DW  0010H, 0001H  ;HID Class spec. release number (1.00)
  79  0019              ;bCountryCode_0:       DW  0000H   ;Hardware target country
  80  0019              ;bNumDescriptors_0:    DW  0001h   ;Number of HID class descriptors to follow
  81  0019              ;bDescriptorType_0:    DW  0022H   ;Entity descriptor type
  82  0019              ;wEntityLength_0:      DW  0035h	
  83  0019              ;-----------------------------------------------------------------------------
  84  0019              EndpointD_0:
  85  0019  0507 0381   DW		00507H,	00381H,	00008H,	03f0aH				;7
            0008 3F0A
  86  001D              ;bLengthE_0_1:           DW  0007H   ;Size of this descriptor in bytes (9)
  87  001D              ;bDescriptorTypeE_0_1:   DW  0005H   ;Endpoint descriptor type (5)
  88  001D              ;bEndpointAddress_0_1:   DW  0081H   ;The address of endpoint    (81h)
  89  001D              ;                                ;bit 0..3: The endpoint number  0001
  90  001D              ;                                ;bit 4..6: reserved              000
  91  001D              ;                                ;bit 7   : direction (0:Out/1:In)  1
  92  001D              ;bmAttribute_0_1:        DW  0003H   ;Endpoint Attribute (03h)
  93  001D              ;                                ;bit 0..1: transfer type
  94  001D              ;                                ;      00  Control
  95  001D              ;                                ;      01  Isochronous
  96  001D              ;                                ;      10  Bulk
  97  001D              ;                                ;      11  Interrupt
  98  001D              ;                                ;All other reserved
  99  001D              ;wMaxPacketSize_0_1:     DW  0008H, 0000H    ;Maximum packet size (8)
 100  001D              ;bInterval_0:          	 DW  0008H   ;Interval for polling endpoint (8 ms)
 101  001D              
 102  001D              EndpointD_2:
 103  001D              EndpointD_1:
 104  001D              ;DW		00507H,	00302H,	00008H,	03f08H				;7
 105  001D              ;DW		00507H,	00302H,	00008H,	03f0aH				;7
 106  001D              ;bLengthE_0_1:           DW  0007H   ;Size of this descriptor in bytes (9)
 107  001D              ;bDescriptorTypeE_0_1:   DW  0005H   ;Endpoint descriptor type (5)
 108  001D              ;bEndpointAddress_0_1:   DW  0002H   ;The address of endpoint    (81h)
 109  001D              ;                                ;bit 0..3: The endpoint number  0001
 110  001D              ;                                ;bit 4..6: reserved              000
 111  001D              ;                                ;bit 7   : direction (0:Out/1:In)  1
 112  001D              ;bmAttribute_0_1:        DW  0003H   ;Endpoint Attribute (03h)
"File: DES.ASM       Holtek Cross-Assembler  Version 2.86      Page 3

 113  001D              ;                                ;bit 0..1: transfer type
 114  001D              ;                                ;      00  Control
 115  001D              ;                                ;      01  Isochronous
 116  001D              ;                                ;      10  Bulk
 117  001D              ;                                ;      11  Interrupt
 118  001D              ;                                ;All other reserved
 119  001D              ;wMaxPacketSize_0_1:     DW  0008H, 0000H    ;Maximum packet size (16)
 120  001D              ;bInterval_0:          	 DW  0008H   ;Interval for polling endpoint (8 ms)
 121  001D              
 122  001D              ;-----------------------------------------------------------------------------
 123  001D              Entity_2:
 124  001D              Entity_1:
 125  001D              Entity_0:
 126  001D  0006 09FF   dw		00006h, 009ffh, 03f01h, 001a1h
            3F01 01A1
 127  0021              
 128  0021  0295 0875   DW      00295H, 00875H, 0015h, 03f26h, 03fffh, 03f00H 
            0015 3F26 3FFF 3F00
 129  0027              
 130  0027              ;feature
 131  0027              ;DW		00409H, 0509h, 002B1H
 132  0027              
 133  0027              ;intput
 134  0027  0015 3F26   dw		00015h, 03f26h, 03fffh, 03f00h
            3FFF 3F00
 135  002B  1019 1729   dw		01019h, 01729h	;usage min, usage max
 136  002D  0895 0875   dw		00895h, 00875h, 00281h
            0281
 137  0030              
 138  0030              ;output
 139  0030  0015 3F26   dw      00015h, 03f26h, 03fffh, 03f00h
            3FFF 3F00
 140  0034  1819 1F29   dw		01819h, 01f29h	;usage min, usage max
 141  0036  0895 0875   dw		00895h, 00875h, 00291h
            0291
 142  0039              
 143  0039  3FC0        dw		03fc0h
 144  003A              
 145  003A              ;		DB	06H, 00H, FFH  	;  USAGE PAGE (USER PAGE) 
 146  003A              ;		DB	09H, 01H  		;  USAGE (CONSUMER CONTROL)
 147  003A              ;		DB	A1H, 01H		;  COLLECTION (APPLICATION)
 148  003A              ;                    DW  0095H, 0001H    ;Report Count (3)
 149  003A              ;                    DW  0075H, 0008H    ;Report Size (1)
 150  003A              ;                    DW  0015H, 0000H    ;Log Min (0)
 151  003A              ;                    DW  0025H, 0006H    ;Log Max (1)
 152  003A              ;                    DW  0009H, 0004H    ;Usage (#)
 153  003A              ;                    DW  00B1H, 0002H    ;Feature: (Data, ARRAY)
 154  003A              
 155  003A              ;					 DB  15H, 00H        ;LOGICAL MINIMUM (0)		
 156  003A              ;				     DB  26H, FFH, 00H   ;LOGICAL MAXIMUM (FF)
 157  003A              ;                    DW  0019H, 0018H    ;Usage Min (#)
 158  003A              ;                    DW  0029H, 001FH    ;Usage Max (#)
 159  003A              
 160  003A              ;       			 DW  0095H, 0008H    ;Report Count (8)
 161  003A              ;       			 DW  0075H, 0008H    ;Report Size (8)
 162  003A              ;       			 DW  0091H, 0002H    ;INPUT: (Data, Array)
 163  003A              
 164  003A              ;					 DB  15H, 00H        ;LOGICAL MINIMUM (0)		
 165  003A              ;				     DB  26H, FFH, 00H   ;LOGICAL MAXIMUM (FF)
 166  003A              ;                    DW  0019H, 0004H    ;Usage Min (#)
"File: DES.ASM       Holtek Cross-Assembler  Version 2.86      Page 4

 167  003A              ;                    DW  0029H, 0006H    ;Usage Max (#)
 168  003A              
 169  003A              ;       			 DW  0095H, 0008H    ;Report Count (8)
 170  003A              ;       			 DW  0075H, 0008H    ;Report Size (8)
 171  003A              ;       			 DW  0091H, 0002H    ;OUTPUT: (Data, Array)
 172  003A              ;		DB C0H							 ;END_COLLECTION	
 173  003A              
 174  003A              ;-----------------------------------------------------------------------------
 175  003A              LANGID:
 176  003A  0304 0409   dw		0304h,	00409h
 177  003C              
 178  003C              ManufactureS:
 179  003C  030E 0048   dw		0030eh, 'H', 'o', 'l', 't', 'e', 'k'
            006F 006C 0074 0065 006B
 180  0043              
 181  0043              ProductS:
 182  0043  0324        dw		00324h
 183  0044  0055 0053   dw		'U','S','B','-','H','I','D',' ','d','e','m','o',' ','c','o','d','e'
            0042 002D 0048 0049 0044 0020 0064 0065 006D 006F 0020 0063 006F 0064 0065
 184  0055              
 185  0055              ;avoid c compiler/linker arrange code in last byte (ice bug)
 186  0000              DUMMY			.Section   at	07FFH		'CODE'
 187  0000  0000        DW		0000H
 188  0001              ;-----------------------------------------------------------------------------
 189  0001              PUBLIC			DeviceD
 190  0001              PUBLIC			ConfigurationD
 191  0001              PUBLIC			InterfaceD_0
 192  0001              PUBLIC			EndpointD_0
 193  0001              PUBLIC			HID_0
 194  0001              PUBLIC			Entity_0
 195  0001              PUBLIC			InterfaceD_1
 196  0001              PUBLIC			EndpointD_1
 197  0001              PUBLIC			HID_1
 198  0001              PUBLIC			Entity_1
 199  0001              PUBLIC			InterfaceD_2
 200  0001              PUBLIC			EndpointD_2
 201  0001              PUBLIC			HID_2
 202  0001              public			LANGID
 203  0001              public			ManufactureS
 204  0001              public			ProductS
 205  0001              end


        0 Errors

⌨️ 快捷键说明

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