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

📄 main.lst

📁 USB interface examples using CDC by HT-PICC 18
💻 LST
📖 第 1 页 / 共 5 页
字号:
   927  007BFA  0100               	movlb	_pDst shr (0+8)
   928  007BFC  2BB7               	incf	_pDst& (0+255),f,b
   929  007BFE  0E00               	movlw	0
   930  007C00  23B8               	addwfc	(_pDst+1)& (0+255),f,b
   931                           ;GenericUSB.h: 946: pSrc.bRam++;
   932  007C02  2BB9               	incf	_pSrc& (0+255),f,b
   933  007C04  23BA               	addwfc	(_pSrc+1)& (0+255),f,b
   934                           ;GenericUSB.h: 947: byte_to_send._word--;
   935  007C06  0100               	movlb	__Lparam shr (0+8)
   936  007C08  07BD               	decf	?a_USBCtrlTrfTxService^(__Lparam& (0+65280
      +                          )),f,b
   937  007C0A  A0D8               	btfss	status,0,c
   938  007C0C  07BE               	decf	(?a_USBCtrlTrfTxService+1)^(__Lparam& (0+6
      +                          5280)),f,b
   939  007C0E                     l118:
   940  007C0E  0100               	movlb	__Lparam shr (0+8)
   941  007C10  51BE               	movf	(?a_USBCtrlTrfTxService+1)^(__Lparam& (0+6
      +                          5280)),w
   942  007C12  11BD               	iorwf	?a_USBCtrlTrfTxService^(__Lparam& (0+6528
      +                          0)),w
   943  007C14  B4D8               	btfsc	status,2,c
   944  007C16  0012               	return	
   945  007C18  D7E6               	goto	l119
   946                           ;GenericUSB.h: 948: }
   947  007C1A                     _USBCtrlTrfRxService:
   948  000000                     
   949                           ;	_byte_to_read assigned to ?a_USBCtrlTrfRxServi
      +                          ce+0
   950  000000                     _USBCtrlTrfRxService$byte_to_read	set	?a_USBCtrl
      +                          TrfRxService
   951                           ;GenericUSB.h: 954: void USBCtrlTrfRxService(voi
      +                          d)
   952  007C1A  C400 FFE8          	movff	1024,wreg
   953  007C1E  0B03               	andlw	3
   954  007C20  0100               	movlb	__Lparam shr (0+8)
   955  007C22  6FBE               	movwf	(?a_USBCtrlTrfRxService+1)^(__Lparam& (0+
      +                          65280)),b
   956                           ;GenericUSB.h: 959: ((byte_to_read).d.v[0]) = ep
      +                          [0].out.a.Cnt;
   957  007C24  C401 F0BD          	movff	1025,?a_USBCtrlTrfRxService
   958                           ;GenericUSB.h: 960: wCount._word = wCount._word 
      +                          + byte_to_read._word;
   959  007C28  C0BD  F000         	movff	?a_USBCtrlTrfRxService,btemp
   960  007C2C  C0BE  F001         	movff	?a_USBCtrlTrfRxService+1,btemp+1
   961  007C30  0100               	movlb	_wCount shr (0+8)
   962  007C32  C000  FFE8         	movff	btemp,wreg
   963  007C36  27BB               	addwf	_wCount& (0+255),f,b
   964  007C38  C001  FFE8         	movff	btemp+1,wreg
   965  007C3C  23BC               	addwfc	(_wCount+1)& (0+255),f,b
   966                           ;GenericUSB.h: 961: pSrc.bRam = (byte*)&CtrlTrfD
      +                          ata;
   967  007C3E  0EC0               	movlw	192
   968  007C40  6FB9               	movwf	_pSrc& (0+255),b
   969  007C42  0E04               	movlw	4
   970  007C44  6FBA               	movwf	(_pSrc+1)& (0+255),b
   971                           ;GenericUSB.h: 962: while(byte_to_read._word)
   972  007C46                     l122:
   973  007C46  0100               	movlb	__Lparam shr (0+8)
   974  007C48  51BE               	movf	(?a_USBCtrlTrfRxService+1)^(__Lparam& (0+6
      +                          5280)),w
   975  007C4A  11BD               	iorwf	?a_USBCtrlTrfRxService^(__Lparam& (0+6528
      +                          0)),w
   976  007C4C  B4D8               	btfsc	status,2,c
   977  007C4E  0012               	return	
   978                           ;GenericUSB.h: 963: {
   979  007C50  C0B9  FFE1         	movff	_pSrc,fsr1l
   980  007C54  C0BA  FFE2         	movff	_pSrc+1,fsr1h
   981  007C58  C0B7  FFE9         	movff	_pDst,fsr0l
   982  007C5C  C0B8  FFEA         	movff	_pDst+1,fsr0h
   983  007C60  CFE7 FFEF          	movff	indf1,indf0
   984                           ;GenericUSB.h: 965: pDst.bRam++;
   985  007C64  0100               	movlb	_pDst shr (0+8)
   986  007C66  2BB7               	incf	_pDst& (0+255),f,b
   987  007C68  0E00               	movlw	0
   988  007C6A  23B8               	addwfc	(_pDst+1)& (0+255),f,b
   989                           ;GenericUSB.h: 966: pSrc.bRam++;
   990  007C6C  2BB9               	incf	_pSrc& (0+255),f,b
   991  007C6E  23BA               	addwfc	(_pSrc+1)& (0+255),f,b
   992                           ;GenericUSB.h: 967: byte_to_read._word--;
   993  007C70  0100               	movlb	__Lparam shr (0+8)
   994  007C72  07BD               	decf	?a_USBCtrlTrfRxService^(__Lparam& (0+65280
      +                          )),f,b
   995  007C74  A0D8               	btfss	status,0,c
   996  007C76  07BE               	decf	(?a_USBCtrlTrfRxService+1)^(__Lparam& (0+6
      +                          5280)),f,b
   997  007C78  D7E6               	goto	l122
   998                           ;GenericUSB.h: 968: }
   999  007C7A                     _USBCtrlEPServiceComplete:
  1000  000000                     
  1001                           ;GenericUSB.h: 972: void USBCtrlEPServiceComplet
      +                          e(void)
  1002  007C7A  0103               	movlb	_ctrl_trf_session_owner shr (0+8)
  1003  007C7C  53F9               	movf	_ctrl_trf_session_owner& (0+255),f,b
  1004  007C7E  E10C               	bnz	l126
  1005                           ;GenericUSB.h: 975: {
  1006  007C80  0E40               	movlw	64
  1007  007C82  CFE8 F401          	movff	wreg,1025
  1008                           ;GenericUSB.h: 977: ep[0].out.b.ADR = (byte*)&Se
      +                          tupPkt;
  1009  007C86  0104               	movlb	4
  1010  007C88  0E80               	movlw	128
  1011  007C8A  6F02               	movwf	2,b
  1012  007C8C  0E04               	movlw	4
  1013  007C8E  6F03               	movwf	3,b
  1014                           ;GenericUSB.h: 978: ep[0].out.a.Status._byte = 0
      +                          x80|0x04;
  1015  007C90  0E84               	movlw	-124
  1016  007C92  CFE8 F400          	movff	wreg,1024
  1017                           ;GenericUSB.h: 979: ep[0].in.a.Status._byte = 0x
      +                          80|0x04;
  1018  007C96  D02B               	goto	L1
  1019                           ;GenericUSB.h: 980: }
  1020  007C98                     l126:
  1021                           ;GenericUSB.h: 981: else
  1022  007C98  0104               	movlb	4
  1023  007C9A  AF80               	btfss	128,7,b
  1024  007C9C  D02B               	goto	l128
  1025                           ;GenericUSB.h: 984: {
  1026  007C9E  C0BB  F000         	movff	_wCount,btemp
  1027  007CA2  C0BC  F001         	movff	_wCount+1,btemp+1
  1028  007CA6  EE04 F086          	lfsr	0,1158
  1029  007CAA  CFEE F002          	movff	postinc0,btemp+2
  1030  007CAE  CFED F003          	movff	postdec0,btemp+3
  1031  007CB2  5001               	movf	btemp+1,w,c
  1032  007CB4  5C03               	subwf	btemp+3,w,c
  1033  007CB6  E102               	bnz	u375
  1034  007CB8  5000               	movf	btemp,w,c
  1035  007CBA  5C02               	subwf	btemp+2,w,c
  1036  007CBC                     u375:
  1037  007CBC  E204               	bc	l129
  1038                           ;GenericUSB.h: 986: wCount._word = SetupPkt.b.wL
      +                          ength;
  1039  007CBE  C486 F0BB          	movff	1158,_wCount
  1040  007CC2  C487 F0BC          	movff	1159,_wCount+1
  1041  007CC6                     l129:
  1042                           ;GenericUSB.h: 987: USBCtrlTrfTxService();
  1043  007CC6  DF3D               	call	_USBCtrlTrfTxService	;wreg free
  1044                           ;GenericUSB.h: 988: ctrl_trf_state = 1;
  1045  007CC8  0E01               	movlw	1
  1046  007CCA  CFE8 F3FA          	movff	wreg,_ctrl_trf_state
  1047                           ;GenericUSB.h: 989: ep[0].out.a.Cnt = 64;
  1048  007CCE  0E40               	movlw	64
  1049  007CD0  CFE8 F401          	movff	wreg,1025
  1050                           ;GenericUSB.h: 990: ep[0].out.b.ADR = (byte*)&Se
      +                          tupPkt;
  1051  007CD4  0104               	movlb	4
  1052  007CD6  0E80               	movlw	128
  1053  007CD8  6F02               	movwf	2,b
  1054  007CDA  0E04               	movlw	4
  1055  007CDC  6F03               	movwf	3,b
  1056                           ;GenericUSB.h: 991: ep[0].out.a.Status._byte = 0
      +                          x80;
  1057  007CDE  0E80               	movlw	-128
  1058  007CE0  CFE8 F400          	movff	wreg,1024
  1059                           ;GenericUSB.h: 992: ep[0].in.b.ADR = (byte*)&Ctr
      +                          lTrfData;
  1060  007CE4  0EC0               	movlw	192
  1061  007CE6  6F06               	movwf	6,b
  1062  007CE8  0E04               	movlw	4
  1063  007CEA  6F07               	movwf	7,b
  1064                           ;GenericUSB.h: 993: ep[0].in.a.Status._byte = 0x
      +                          80|0x40|0x08;
  1065  007CEC  0EC8               	movlw	-56
  1066  007CEE                     L1:
  1067  007CEE  CFE8 F404          	movff	wreg,1028
  1068                           ;GenericUSB.h: 994: }
  1069  007CF2  D012               	goto	l127
  1070  007CF4                     l128:
  1071                           ;GenericUSB.h: 995: else
  1072  007CF4  0E02               	movlw	2
  1073  007CF6  CFE8 F3FA          	movff	wreg,_ctrl_trf_state
  1074                           ;GenericUSB.h: 998: ep[0].in.a.Cnt = 0;
  1075  007CFA  0104               	movlb	4
  1076  007CFC  6B05               	clrf	5,b
  1077                           ;GenericUSB.h: 999: ep[0].in.a.Status._byte = 0x
      +                          80|0x40|0x08;
  1078  007CFE  0EC8               	movlw	-56
  1079  007D00  CFE8 F404          	movff	wreg,1028
  1080                           ;GenericUSB.h: 1000: ep[0].out.a.Cnt = 64;
  1081  007D04  0E40               	movlw	64
  1082  007D06  CFE8 F401          	movff	wreg,1025
  1083                           ;GenericUSB.h: 1001: ep[0].out.b.ADR = (byte*)&C
      +                          trlTrfData;
  1084  007D0A  0EC0               	movlw	192
  1085  007D0C  6F02               	movwf	2,b
  1086  007D0E  0E04               	movlw	4
  1087  007D10  6F03               	movwf	3,b
  1088                           ;GenericUSB.h: 1002: ep[0].out.a.Status._byte = 
      +                          0x80|0x40|0x08;
  1089  007D12  0EC8               	movlw	-56
  1090  007D14  CFE8 F400          	movff	wreg,1024
  1091  007D18                     l127:
  1092                           ;GenericUSB.h: 1003: }
  1093  007D18  986D               	bcf	3949,4,c	;volatile
  1094                           ;GenericUSB.h: 1006: }
  1095  007D1A  0012               	return	
  1096  007D1C                     _USBPrepareForNextSetupTrf:
  1097  000000                     
  1098                           ;GenericUSB.h: 1010: void USBPrepareForNextSetup
      +                          Trf(void)
  1099  007D1C  0103               	movlb	_ctrl_trf_state shr (0+8)
  1100  007D1E  6BFA               	clrf	_ctrl_trf_state& (0+255),b
  1101                           ;GenericUSB.h: 1013: ep[0].out.a.Cnt = 64;
  1102  007D20  0E40               	movlw	64
  1103  007D22  CFE8 F401          	movff	wreg,1025
  1104                           ;GenericUSB.h: 1014: ep[0].out.b.ADR = (byte*)&S
      +                          etupPkt;
  1105  007D26  0104               	movlb	4
  1106  007D28  0E80               	movlw	128
  1107  007D2A  6F02               	movwf	2,b
  1108  007D2C  0E04               	movlw	4
  1109  007D2E  6F03               	movwf	3,b
  1110                           ;GenericUSB.h: 1015: ep[0].out.a.Status._byte = 
      +                          0x80|0x00|0x08;
  1111  007D30  0E88               	movlw	-120
  1112  007D32  CFE8 F400          	movff	wreg,1024
  1113                           ;GenericUSB.h: 1016: ep[0].in.a.Status._byte = 0
      +                          x00;
  1114  007D36  6B04               	clrf	4,b
  1115                           ;GenericUSB.h: 1017: }
  1116  007D38  0012               	return	
  1117  007D3A                     _USBCheckBusStatus:
  1118  000000                     
  1119                           ;GenericUSB.h: 1025: void USBCheckBusStatus(void
      +                          )
  1120  007D3A  A66D               	btfss	3949,3,c	;volatile
  1121                           ;GenericUSB.h: 1033: USBModuleEnable();
  1122  007D3C  D80E               	call	_USBModuleEnable	;wreg free
  1123                           ;GenericUSB.h: 1034: }
  1124                           ;GenericUSB.h: 1039: }
  1125  007D3E  C3FD  F000         	movff	_usb_device_state,btemp
  1126  007D42  0400               	decf	btemp,w,c
  1127  007D44  B4D8               	btfsc	status,2,c
  1128                           ;GenericUSB.h: 1041: {
  1129  007D46  BA6D               	btfsc	3949,5,c	;volatile
  1130  007D48  0012               	return	
  1131                           ;GenericUSB.h: 1043: {
  1132  007D4A  6A68               	clrf	3944,c	;volatile
  1133                           ;GenericUSB.h: 1045: UIE = 0;
  1134  007D4C  6A69      

⌨️ 快捷键说明

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