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

📄 dscr.lst

📁 《单片机通信技术与工程实践》一书的源码
💻 LST
字号:
A51 MACRO ASSEMBLER  DSCR                                                                 08/21/2004 11:22:42 PAGE     1


MACRO ASSEMBLER A51 V7.07
OBJECT MODULE PLACED IN Dscr.OBJ
ASSEMBLER INVOKED BY: e:\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     ;; Note: This segment must be located in on-part memory.
----                  27                     rseg DSCR               ;; locate the descriptor table anywhere below 8K
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 - set to default example ID
000C 0100             37                     dw      0100H           ;; Product version ID
000E 00               38                     db      0               ;; Manufacturer string index
000F 00               39                     db      0               ;; Product string index
0010 00               40                     db      0               ;; Serial number string index
0011 01               41                     db      1               ;; Number of configurations
0012                  42     deviceDscrEnd:
                      43     
0012 09               44     ConfigDscr:     db      ConfigDscrEnd-ConfigDscr                ;; Descriptor length
0013 02               45                     db      DSCR_CONFIG     ;; Descriptor type
0014 20               46                     db      StringDscr-ConfigDscr           ;; Configuration + End Points lengt
                             h (LSB)
0015 00               47                     db      (StringDscr-ConfigDscr)/256     ;; Configuration + End Points lengt
                             h (MSB)
0016 01               48                     db      1               ;; Number of interfaces
0017 01               49                     db      1               ;; Interface number
0018 00               50                     db      0               ;; 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
A51 MACRO ASSEMBLER  DSCR                                                                 08/21/2004 11:22:42 PAGE     2

001C 04               57                     db      DSCR_INTRFC     ;; Descriptor type
001D 00               58                     db      0               ;; Zero-based index of this interface
001E 00               59                     db      0               ;; Alternate setting
001F 02               60                     db      2               ;; 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 00               64                     db      0               ;; Interface descriptor string index
0024                  65     IntrfcDscrEnd:
                      66                     
0024                  67     EpInDscr:
0024 07               68                     db      EpInDscrEnd-EpInDscr            ;; Descriptor length
0025 05               69                     db      DSCR_ENDPNT     ;; Descriptor type
0026 82               70                     db      82H             ;; Endpoint number, and direction
0027 02               71                     db      ET_BULK         ;; Endpoint type
0028 40               72                     db      40H             ;; Maximun packet size (LSB)
0029 00               73                     db      00H             ;; Max packect size (MSB)
002A 00               74                     db      00H             ;; Polling interval
002B                  75     EpInDscrEnd:
                      76     
002B                  77     EpOutDscr:
002B 07               78                     db      EpOutDscrEnd-EpOutDscr          ;; Descriptor length
002C 05               79                     db      DSCR_ENDPNT     ;; Descriptor type
002D 02               80                     db      02H             ;; Endpoint number, and direction
002E 02               81                     db      ET_BULK         ;; Endpoint type
002F 40               82                     db      40H             ;; Maximun packet size (LSB)
0030 00               83                     db      00H             ;; Max packect size (MSB)
0031 00               84                     db      00H             ;; Polling interval
0032                  85     EpOutDscrEnd:
                      86     
0032                  87     StringDscr:
0032                  88     StringDscr0:
0032 04               89                     db      StringDscr0End-StringDscr0              ;; String descriptor length
0033 03               90                     db      DSCR_STRING
0034 0904             91                     db      09H,04H
0036                  92     StringDscr0End:
                      93     
0036                  94     StringDscr1:    
0036 1A               95                     db      StringDscr1End-StringDscr1              ;; String descriptor length
0037 03               96                     db      DSCR_STRING
0038 4100             97                     db      'A',00
003A 6E00             98                     db      'n',00
003C 6300             99                     db      'c',00
003E 6800            100                     db      'h',00
0040 6F00            101                     db      'o',00
0042 7200            102                     db      'r',00
0044 2000            103                     db      ' ',00
0046 4300            104                     db      'C',00
0048 6800            105                     db      'h',00
004A 6900            106                     db      'i',00
004C 7000            107                     db      'p',00
004E 7300            108                     db      's',00
0050                 109     StringDscr1End:
                     110     
0050                 111     StringDscr2:    
0050 1C              112                     db      StringDscr2End-StringDscr2              ;; Descriptor length
0051 03              113                     db      DSCR_STRING
0052 4500            114                     db      'E',00
0054 5A00            115                     db      'Z',00
0056 2D00            116                     db      '-',00
0058 5500            117                     db      'U',00
005A 5300            118                     db      'S',00
005C 4200            119                     db      'B',00
005E 2000            120                     db      ' ',00
0060 4400            121                     db      'D',00
0062 6500            122                     db      'e',00
A51 MACRO ASSEMBLER  DSCR                                                                 08/21/2004 11:22:42 PAGE     3

0064 7600            123                     db      'v',00
0066 6900            124                     db      'i',00
0068 6300            125                     db      'c',00
006A 6500            126                     db      'e',00
006C                 127     StringDscr2End:
                     128     
006C                 129     UserDscr:               
006C 0000            130                     dw      0000H
                     131                     end
                                             
A51 MACRO ASSEMBLER  DSCR                                                                 08/21/2004 11:22:42 PAGE     4

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    006EH       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   
EPINDSCR . . . . .  C ADDR   0024H   R   SEG=DSCR
EPINDSCREND. . . .  C ADDR   002BH   R   SEG=DSCR
EPOUTDSCR. . . . .  C ADDR   002BH   R   SEG=DSCR
EPOUTDSCREND . . .  C ADDR   0032H   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   0032H   R   SEG=DSCR
STRINGDSCR0. . . .  C ADDR   0032H   R   SEG=DSCR
STRINGDSCR0END . .  C ADDR   0036H   R   SEG=DSCR
STRINGDSCR1. . . .  C ADDR   0036H   R   SEG=DSCR
STRINGDSCR1END . .  C ADDR   0050H   R   SEG=DSCR
STRINGDSCR2. . . .  C ADDR   0050H   R   SEG=DSCR
STRINGDSCR2END . .  C ADDR   006CH   R   SEG=DSCR
USERDSCR . . . . .  C ADDR   006CH   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 + -