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

📄 usbctrltrf.lst

📁 USB的开发例子,用PIC18F4550实现.可以和电脑用USB控制连接.
💻 LST
📖 第 1 页 / 共 3 页
字号:
   453                           ;usbctrltrf.c: 352: }
   454                           ;usbctrltrf.c: 382: void USBCtrlEPServiceComplet
      +                          e(void)
   455                           ;usbctrltrf.c: 383: {
   456  000AD2                     _USBCtrlEPServiceComplete:
   457  000000                     
   458                           ;usbctrltrf.c: 384: if(ctrl_trf_session_owner ==
      +                           0)
   459  000AD2  0103               	movlb	_ctrl_trf_session_owner shr (0+8)
   460  000AD4  5377               	movf	_ctrl_trf_session_owner& (0+255),f,b
   461  000AD6  A4D8               	btfss	status,2,c
   462  000AD8  D00C               	goto	l118
   463                           ;usbctrltrf.c: 385: {
   464  000ADA  0E08               	movlw	8
   465  000ADC  CFE8 F401          	movff	wreg,1025
   466                           ;usbctrltrf.c: 391: ep[0].out.b.ADR = (byte*)&Se
      +                          tupPkt;
   467  000AE0  0104               	movlb	4
   468  000AE2  0E80               	movlw	128
   469  000AE4  6F02               	movwf	2,b
   470  000AE6  0E04               	movlw	4
   471  000AE8  6F03               	movwf	3,b
   472                           ;usbctrltrf.c: 393: ep[0].out.a.Stat._byte = 0x8
      +                          0|0x04;
   473  000AEA  0E84               	movlw	-124
   474  000AEC  CFE8 F400          	movff	wreg,1024
   475                           ;usbctrltrf.c: 394: ep[0].in.a.Stat._byte = 0x80
      +                          |0x04;
   476  000AF0  D02C               	goto	L1
   477                           ;usbctrltrf.c: 395: }
   478  000AF2                     l118:
   479                           ;usbctrltrf.c: 397: {
   480  000AF2  0104               	movlb	4
   481  000AF4  AF80               	btfss	128,7,b
   482  000AF6  D02C               	goto	l120
   483                           ;usbctrltrf.c: 399: {
   484  000AF8  C0E5  F000         	movff	_wCount,btemp
   485  000AFC  C0E6  F001         	movff	_wCount+1,btemp+1
   486  000B00  EE04 F086          	lfsr	0,1158
   487  000B04  CFEE F002          	movff	postinc0,btemp+2
   488  000B08  CFED F003          	movff	postdec0,btemp+3
   489  000B0C  5001               	movf	btemp+1,w
   490  000B0E  5C03               	subwf	btemp+3,w
   491  000B10  E102               	bnz	u205
   492  000B12  5000               	movf	btemp,w
   493  000B14  5C02               	subwf	btemp+2,w
   494  000B16                     u205:
   495  000B16  B0D8               	btfsc	status,0,c
   496  000B18  D004               	goto	l121
   497                           ;usbctrltrf.c: 401: wCount._word = SetupPkt.b.wL
      +                          ength;
   498  000B1A  C486 F0E5          	movff	1158,_wCount
   499  000B1E  C487 F0E6          	movff	1159,_wCount+1
   500  000B22                     l121:
   501                           ;usbctrltrf.c: 402: USBCtrlTrfTxService();
   502  000B22  DF41               	call	_USBCtrlTrfTxService	;wreg free
   503                           ;usbctrltrf.c: 403: ctrl_trf_state = 1;
   504  000B24  0E01               	movlw	1
   505  000B26  CFE8 F378          	movff	wreg,_ctrl_trf_state
   506                           ;usbctrltrf.c: 431: ep[0].out.a.Cnt = 8;
   507  000B2A  0E08               	movlw	8
   508  000B2C  CFE8 F401          	movff	wreg,1025
   509                           ;usbctrltrf.c: 432: ep[0].out.b.ADR = (byte*)&Se
      +                          tupPkt;
   510  000B30  0104               	movlb	4
   511  000B32  0E80               	movlw	128
   512  000B34  6F02               	movwf	2,b
   513  000B36  0E04               	movlw	4
   514  000B38  6F03               	movwf	3,b
   515                           ;usbctrltrf.c: 433: ep[0].out.a.Stat._byte = 0x8
      +                          0;
   516  000B3A  0E80               	movlw	-128
   517  000B3C  CFE8 F400          	movff	wreg,1024
   518                           ;usbctrltrf.c: 439: ep[0].in.b.ADR = (byte*)&Ctr
      +                          lTrfData;
   519  000B40  0EC0               	movlw	192
   520  000B42  6F06               	movwf	6,b
   521  000B44  0E04               	movlw	4
   522  000B46  6F07               	movwf	7,b
   523                           ;usbctrltrf.c: 440: ep[0].in.a.Stat._byte = 0x80
      +                          |0x40|0x08;
   524  000B48  0EC8               	movlw	-56
   525  000B4A                     L1:
   526  000B4A  CFE8 F404          	movff	wreg,1028
   527                           ;usbctrltrf.c: 441: }
   528  000B4E  D012               	goto	l119
   529  000B50                     l120:
   530                           ;usbctrltrf.c: 443: {
   531  000B50  0E02               	movlw	2
   532  000B52  CFE8 F378          	movff	wreg,_ctrl_trf_state
   533                           ;usbctrltrf.c: 454: ep[0].in.a.Cnt = 0;
   534  000B56  0104               	movlb	4
   535  000B58  6B05               	clrf	5,b
   536                           ;usbctrltrf.c: 455: ep[0].in.a.Stat._byte = 0x80
      +                          |0x40|0x08;
   537  000B5A  0EC8               	movlw	-56
   538  000B5C  CFE8 F404          	movff	wreg,1028
   539                           ;usbctrltrf.c: 460: ep[0].out.a.Cnt = 8;
   540  000B60  0E08               	movlw	8
   541  000B62  CFE8 F401          	movff	wreg,1025
   542                           ;usbctrltrf.c: 461: ep[0].out.b.ADR = (byte*)&Ct
      +                          rlTrfData;
   543  000B66  0EC0               	movlw	192
   544  000B68  6F02               	movwf	2,b
   545  000B6A  0E04               	movlw	4
   546  000B6C  6F03               	movwf	3,b
   547                           ;usbctrltrf.c: 462: ep[0].out.a.Stat._byte = 0x8
      +                          0|0x40|0x08;
   548  000B6E  0EC8               	movlw	-56
   549  000B70  CFE8 F400          	movff	wreg,1024
   550                           ;usbctrltrf.c: 463: }
   551  000B74                     l119:
   552                           ;usbctrltrf.c: 464: }
   553                           ;usbctrltrf.c: 471: UCONbits.PKTDIS = 0;
   554  000B74  986D               	bcf	3949,4,c	;volatile
   555                           ;usbctrltrf.c: 473: }
   556  000B76  0012               	return	
   557                           ;usbctrltrf.c: 491: void USBPrepareForNextSetupT
      +                          rf(void)
   558                           ;usbctrltrf.c: 492: {
   559  000B78                     _USBPrepareForNextSetupTrf:
   560  000000                     
   561                           ;usbctrltrf.c: 493: ctrl_trf_state = 0;
   562  000B78  0103               	movlb	_ctrl_trf_state shr (0+8)
   563  000B7A  6B78               	clrf	_ctrl_trf_state& (0+255),b
   564                           ;usbctrltrf.c: 494: ep[0].out.a.Cnt = 8;
   565  000B7C  0E08               	movlw	8
   566  000B7E  CFE8 F401          	movff	wreg,1025
   567                           ;usbctrltrf.c: 495: ep[0].out.b.ADR = (byte*)&Se
      +                          tupPkt;
   568  000B82  0104               	movlb	4
   569  000B84  0E80               	movlw	128
   570  000B86  6F02               	movwf	2,b
   571  000B88  0E04               	movlw	4
   572  000B8A  6F03               	movwf	3,b
   573                           ;usbctrltrf.c: 496: ep[0].out.a.Stat._byte = 0x8
      +                          0|0x00|0x08;
   574  000B8C  0E88               	movlw	-120
   575  000B8E  CFE8 F400          	movff	wreg,1024
   576                           ;usbctrltrf.c: 497: ep[0].in.a.Stat._byte = 0x00
      +                          ;
   577  000B92  6B04               	clrf	4,b
   578                           ;usbctrltrf.c: 498: }
   579  000B94  0012               	return	
   580                           
   581                           	psect	bigbss
   582  000377                     _ctrl_trf_session_owner:
   583  000377                     	ds	1
   584  000377                     _ctrl_trf_state:
   585  000377                     	ds	1
   586  000000                     
   587  000000                     
   588  000000                     
   589  000000                     
   590  000000                     
   591  000000                     
   592  000000                     
   593                           
   594                           	psect	bss
   595  0000E1                     _pDst:
   596  0000E1                     	ds	2
   597  0000E1                     _pSrc:
   598  0000E1                     	ds	2
   599  0000E1                     _wCount:
   600  0000E1                     	ds	2
   601  000000                     
   602  000000                     
   603  000000                     
   604  000000                     
   605  000000                     
   606  000000                     
   607                           
   608                           	psect	temp
   609  000000                     btemp:
   610  000000                     	ds	4
   611                           tblptrh	equ	0xFF7
   612                           tblptrl	equ	0xFF6
   613                           tablat	equ	0xFF5
   614                           indf0	equ	0xFEF
   615                           postinc0	equ	0xFEE
   616                           postdec0	equ	0xFED
   617                           fsr0h	equ	0xFEA
   618                           fsr0l	equ	0xFE9
   619                           wreg	equ	0xFE8
   620                           indf1	equ	0xFE7
   621                           fsr1h	equ	0xFE2
   622                           fsr1l	equ	0xFE1
   623                           status	equ	0xFD8


HI-TECH Software PICC-18 Macro Assembler V8.35PL3
Symbol Table                                           Wed Jun 15 13:32:21 2005

                              l91 095E  
                              l85 08FE  
                              l95 0984  
                              l79 08CE  
                              l96 097E  
                              l99 099E  
              _USBCheckStdRequest 0034  
                             l110 0A6E  
                             l111 0A46  
                             l103 09C0  
                             l120 0B50  
                             l104 09C8  
                             l121 0B22  
                             l114 0A9E  
                             l106 0A3A  
                             l107 09FE  
                             l118 0AF2  
                             l119 0B74  
                             u140 0A24  
                             u205 0B16  
                             u147 0A1A  
                             wreg 000FE8  
        _USBCtrlEPServiceComplete 0AD2  
                 _ClassReqHandler 04CB  
                _USBCtrlEPService 08B4  
                            _pDst 00E1  
                            _pSrc 00E3  
                            fsr0h 000FEA  
                            fsr1h 000FE2  
                            indf0 000FEF  
                            fsr0l 000FE9  
                            indf1 000FE7  
                            fsr1l 000FE1  
                            btemp 0000  
                        clear_big 0018  
                        clear_bss 0024  
                _usb_device_state 037B  
                        _usb_stat 037C  
                      used_btemp0 0001  
                      used_btemp1 0001  
                      used_btemp2 0001  
                      used_btemp3 0001  
                           tablat 000FF5  
                           status 000FD8  
           ?a_USBCtrlTrfRxService 00FC  
          _ctrl_trf_session_owner 0377  
                         __Lparam 00FC  
           ?a_USBCtrlTrfTxService 00FD  
                         __ramtop 0400  
             _USBCtrlTrfInHandler 0966  
            _USBCtrlTrfOutHandler 0944  
                       indir_func 0004  
                         postdec0 000FED  
                  _ctrl_trf_state 0378  
                         postinc0 000FEE  
                          _wCount 00E5  
             _USBCtrlTrfRxService 0A7A  
        ?a_USBCtrlTrfSetupHandler 00FC  
                          tblptrh 000FF7  
                          tblptrl 000FF6  
             _USBCtrlTrfTxService 09A6  
          _USBCtrlTrfSetupHandler 08E8  
       _USBPrepareForNextSetupTrf 0B78  

⌨️ 快捷键说明

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