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

📄 dscr.lst

📁 呵呵
💻 LST
📖 第 1 页 / 共 2 页
字号:
A51 MACRO ASSEMBLER  DSCR                                                                 12/25/2006 14:02:14 PAGE     1


MACRO ASSEMBLER A51 V7.08a
OBJECT MODULE PLACED IN dscr.OBJ
ASSEMBLER INVOKED BY: D:\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     ;; D7      D6     D5      D4      D3      D2      D1      D0
                      27     ;;0/1      0      0       0       *       *       *       *
                      28     ;;|OUT/IN |Reserved              |Endpoint Adrress
                      29     ;;---------------------------------------------------------------
  0002                30     ET2_OUT      equ   2   ;;Endpoint 2 Out
  0082                31     ET2_IN       equ   130    ;;Endpoint 2 In
  0004                32     ET4_OUT      equ   4   ;;Endpoint 4 Out
  0084                33     ET4_IN       equ   132    ;;Endpoint 4 In
  0006                34     ET6_OUT      equ   6   ;;Endpoint 6 Out
  0086                35     ET6_IN       equ   134    ;;Endpoint 6 In
  0008                36     ET8_OUT      equ   8   ;;Endpoint 8 Out
  0088                37     ET8_IN       equ   136    ;;Endpoint 8 In
                      38     public      DeviceDscr, DeviceQualDscr, HighSpeedConfigDscr, FullSpeedConfigDscr, StringDsc
                             r, UserDscr
                      39     
                      40     DSCR   SEGMENT   CODE PAGE
                      41     
                      42     ;;-----------------------------------------------------------------------------
                      43     ;; Global Variables
                      44     ;;-----------------------------------------------------------------------------
----                  45           rseg DSCR      ;; locate the descriptor table in on-part memory.
                      46     
0000                  47     DeviceDscr:   
0000 12               48           db   DSCR_DEVICE_LEN      ;; Descriptor length
0001 01               49           db   DSCR_DEVICE   ;; Decriptor type
0002 0002             50           dw   0002H      ;; Specification Version (BCD)
0004 00               51           db   00H        ;; Device class
0005 00               52           db   00H         ;; Device sub-class
0006 00               53           db   00H         ;; Device sub-sub-class
0007 40               54           db   64         ;; Maximum packet size
0008 0B00             55           dw   0b00H      ;; Vendor ID
000A 8609             56           dw   8609H      ;; Product ID (Sample Device)
000C 0000             57           dw   0000H      ;; Product version ID
A51 MACRO ASSEMBLER  DSCR                                                                 12/25/2006 14:02:14 PAGE     2

000E 01               58           db   1         ;; Manufacturer string index
000F 02               59           db   2         ;; Product string index
0010 00               60           db   0         ;; Serial number string index
0011 01               61           db   1         ;; Number of configurations
                      62     
0012                  63     DeviceQualDscr:
0012 0A               64           db   DSCR_DEVQUAL_LEN   ;; Descriptor length
0013 06               65           db   DSCR_DEVQUAL   ;; Decriptor type
0014 0002             66           dw   0002H      ;; Specification Version (BCD)
0016 00               67           db   00H        ;; Device class
0017 00               68           db   00H         ;; Device sub-class
0018 00               69           db   00H         ;; Device sub-sub-class
0019 40               70           db   64         ;; Maximum packet size
001A 01               71           db   1         ;; Number of configurations
001B 00               72           db   0         ;; Reserved
                      73     
001C                  74     HighSpeedConfigDscr:   
001C 09               75           db   DSCR_CONFIG_LEN               ;; Descriptor length
001D 02               76           db   DSCR_CONFIG                  ;; Descriptor type
001E 20               77           db   (HighSpeedConfigDscrEnd-HighSpeedConfigDscr) mod 256 ;; Total Length (LSB)
001F 00               78           db   (HighSpeedConfigDscrEnd-HighSpeedConfigDscr)  /  256 ;; Total Length (MSB)
0020 01               79           db   1      ;; Number of interfaces
0021 01               80           db   1      ;; Configuration number
0022 00               81           db   0      ;; Configuration string
0023 A0               82           db   10100000b   ;; Attributes (b7 - buspwr, b6 - selfpwr, b5 - rwu)
0024 32               83           db   50      ;; Power requirement (div 2 ma)
                      84     
                      85     ;; Interface Descriptor
0025 09               86           db   DSCR_INTRFC_LEN      ;; Descriptor length
0026 04               87           db   DSCR_INTRFC         ;; Descriptor type
0027 00               88           db   0               ;; Zero-based index of this interface
0028 00               89           db   0               ;; Alternate setting
0029 02               90           db   2               ;; Number of end points 
002A FF               91           db   0ffH            ;; Interface class
002B 00               92           db   00H              ;; Interface sub class
002C 00               93           db   00H               ;; Interface sub sub class
002D 00               94           db   0               ;; Interface descriptor string index
                      95           
                      96     ;; Endpoint Descriptor
002E 07               97           db   DSCR_ENDPNT_LEN      ;; Descriptor length
002F 05               98           db   DSCR_ENDPNT         ;; Descriptor type
0030 82               99           db   82H               ;; Endpoint number, and direction
0031 02              100           db   ET_BULK            ;; Endpoint type
0032 40              101           db   40H               ;; Maximun packet size (LSB)
0033 00              102           db   00H               ;; Max packect size (MSB)
0034 00              103           db   00H               ;; Polling interval
                     104     
                     105     ;; Endpoint Descriptor
0035 07              106           db   DSCR_ENDPNT_LEN      ;; Descriptor length
0036 05              107           db   DSCR_ENDPNT         ;; Descriptor type
0037 06              108           db   06H               ;; Endpoint number, and direction
0038 02              109           db   ET_BULK            ;; Endpoint type
0039 40              110           db   40H               ;; Maximun packet size (LSB)
003A 00              111           db   00H               ;; Max packect size (MSB)
003B 00              112           db   00H               ;; Polling interval
                     113     
003C                 114     HighSpeedConfigDscrEnd:   
                     115     
003C                 116     FullSpeedConfigDscr:   
003C 09              117           db   DSCR_CONFIG_LEN               ;; Descriptor length
003D 02              118           db   DSCR_CONFIG                  ;; Descriptor type
003E 20              119           db   (FullSpeedConfigDscrEnd-FullSpeedConfigDscr) mod 256 ;; Total Length (LSB)
003F 00              120           db   (FullSpeedConfigDscrEnd-FullSpeedConfigDscr)  /  256 ;; Total Length (MSB)
0040 01              121           db   1      ;; Number of interfaces
0041 01              122           db   1      ;; Configuration number
0042 00              123           db   0      ;; Configuration string
A51 MACRO ASSEMBLER  DSCR                                                                 12/25/2006 14:02:14 PAGE     3

0043 A0              124           db   10100000b   ;; Attributes (b7 - buspwr, b6 - selfpwr, b5 - rwu)
0044 32              125           db   50      ;; Power requirement (div 2 ma)
                     126     
                     127     ;; Interface Descriptor
0045 09              128           db   DSCR_INTRFC_LEN      ;; Descriptor length
0046 04              129           db   DSCR_INTRFC         ;; Descriptor type
0047 00              130           db   0               ;; Zero-based index of this interface
0048 00              131           db   0               ;; Alternate setting
0049 02              132           db   2              ;; Number of end points 
004A FF              133           db   0ffH            ;; Interface class
004B 00              134           db   00H               ;; Interface sub class
004C 00              135           db   00H               ;; Interface sub sub class

⌨️ 快捷键说明

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