亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? decode.a51

?? u-boot for Linux platform. you can test it
?? A51
字號:
; This module is common to all of the examples.
; It decodes the USB Setup Packets and generates appropriate responses.
; Interpretation of Reports is handled by MAIN
;
 	CSEG
ServiceSetupPacket:
	MOV	A, RequestType
	MOV	C, ACC.7		; Bit 7 = 1 means IO device needs to send data to PC Host
	MOV	SendData, C
	ANL	A, #01011100b		; IF RequestType[6.4.3.2] = 1 THEN goto BadRequest
	JNZ	BadRequest
	MOV	A, RequestType		; IF RequestType[1&0] = 1 THEN goto BadRequest
	MOV	C, ACC.0
	ANL	C, ACC.1
	JC	BadRequest
	JNB	ACC.5, NotB5		; IF RequestType[5] = 1 THEN RequestType[1,0] = [1,1]
	MOV	A, #00000011b
NotB5:	ANL	A, #00000011b		; Set CommandIndex[5,4] = RequestType[1,0]
	SWAP	A
	MOV	R7, A			; Save HI nibble of CommandIndex
					; Set CommandIndex[3,0] = Request[3,0]
	MOV	A, Request
	ANL	A, #11110000b		; Check if Request > 15
	JNZ	BadRequest
	MOV	A, Request
	ANL	A, #00001111b		; Only 13 are defined today, handle in table
	ORL	A, R7	
;	CALL	CorrectSubroutine	; goto CommandTable(CommandIndex)
CorrectSubroutine:			; Jump to the subroutine that DPTR is pointing to
	MOV	ReplyCount, #1		; Set up a default reply
	MOV	ReplyBuffer, #0
	MOV	ReplyBuffer+1, #0
	CLR	SetAddress		; Clear all flags
	CLR	STALL
	CLR	IsDescriptor
	MOV	DPTR, #CommandTable
	CALL	BumpDPTR		; Point to entry
	MOVX	A, @DPTR		; Get the offset
	MOV	DPTR, #Subroutines
	JMP 	@A+DPTR			; Go to the correct Subroutine

BadRequest:				; Decoded a Bad Request, STALL the Endpoint
	SETB	STALL
	RET
					; Support routines
NextDPTR:				; Returns (DPTR + byte DPTR is pointing to)
	MOVX	A, @DPTR
BumpDPTR:				; Returns (DPTR + ACC)
	ADD	A, DPL
	MOV	DPL, A
	JNC	Skip
	INC	DPH			; Need 16 bit arithmetic here
Skip:	RET

; Since the table only contains byte offsets, it is important that all these routines are
; within one page (100H) of Subroutines
; V3.0 - CommandTable moved outside of this one page limited space
CommandTable:
; First 16 commands are for the Device
	DB LOW(Device_Get_Status - Subroutines)
	DB LOW(Device_Clear_Feature - Subroutines)
	DB LOW(Invalid - Subroutines)
	DB LOW(Device_Set_Feature - Subroutines)
	DB LOW(Invalid - Subroutines)
	DB LOW(Set_Address - Subroutines)
	DB LOW(Get_Descriptor - Subroutines)
	DB LOW(Set_Descriptor - Subroutines)
	DB LOW(Get_Configuration - Subroutines)
	DB LOW(Set_Configuration - Subroutines)
	DB LOW(Invalid - Subroutines)
	DB LOW(Invalid - Subroutines)
	DB LOW(Invalid - Subroutines)
	DB LOW(Invalid - Subroutines)
	DB LOW(Invalid - Subroutines)
	DB LOW(Invalid - Subroutines)
; Next 16 commands are for the Interface
	DB LOW(Interface_Get_Status - Subroutines)
	DB LOW(Interface_Clear_Feature - Subroutines)
	DB LOW(Invalid - Subroutines)
	DB LOW(Interface_Set_Feature - Subroutines)
	DB LOW(Invalid - Subroutines)
	DB LOW(Invalid - Subroutines)
	DB LOW(Get_Class_Descriptor - Subroutines)
	DB LOW(Set_Class_Descriptor - Subroutines)
	DB LOW(Invalid - Subroutines)
	DB LOW(Invalid - Subroutines)
	DB LOW(Get_Interface - Subroutines)
	DB LOW(Set_Interface - Subroutines)
	DB LOW(Invalid - Subroutines)
	DB LOW(Invalid - Subroutines)
	DB LOW(Invalid - Subroutines)
	DB LOW(Invalid - Subroutines)
; Next 16 commands are for the Endpoint
	DB LOW(Endpoint_Get_Status - Subroutines)
	DB LOW(Endpoint_Clear_Feature - Subroutines)
	DB LOW(Invalid - Subroutines)
	DB LOW(Endpoint_Set_Feature - Subroutines)
	DB LOW(Invalid - Subroutines)
	DB LOW(Invalid - Subroutines)
	DB LOW(Invalid - Subroutines)
	DB LOW(Invalid - Subroutines)
	DB LOW(Invalid - Subroutines)
	DB LOW(Invalid - Subroutines)
	DB LOW(Invalid - Subroutines)
	DB LOW(Invalid - Subroutines)
	DB LOW(Endpoint_Sync_Frame - Subroutines)
	DB LOW(Invalid - Subroutines)
	DB LOW(Invalid - Subroutines)
	DB LOW(Invalid - Subroutines)
; Next 16 commands are Class Requests
	DB LOW(Invalid - Subroutines)
	DB LOW(Get_Report - Subroutines)
	DB LOW(Get_Idle - Subroutines)
	DB LOW(Get_Protocol - Subroutines)
	DB LOW(Invalid - Subroutines)
	DB LOW(Invalid - Subroutines)
	DB LOW(Invalid - Subroutines)
	DB LOW(Invalid - Subroutines)
	DB LOW(Invalid - Subroutines)
	DB LOW(Set_Report - Subroutines)
	DB LOW(Set_Idle - Subroutines)
	DB LOW(Set_Protocol - Subroutines)
	DB LOW(Invalid - Subroutines)
	DB LOW(Invalid - Subroutines)
	DB LOW(Invalid - Subroutines)
	DB LOW(Invalid - Subroutines)

Subroutines:
;
; Many requests are INVALID for this example
Get_Protocol:			; We are not a Boot device
Set_Protocol: 			; We are not a Boot device
Set_Descriptor:			; Our Descriptors are static
Set_Class_Descriptor:          	; Our Descriptors are static
Set_Interface:			; We only have one Interface
Get_Interface:			; We do not have an Alternate setting
Set_Idle:			; V3.0 Optional command, not supported
Get_Idle:			; V3.0 Optional command, not supported
Device_Set_Feature: 		; We have no features that can be set or cleared
Interface_Set_Feature: 		; We have no features that can be set or cleared
Endpoint_Set_Feature: 		; We have no features that can be set or cleared
Endpoint_Clear_Feature: 	; V3.0 We have no features that can be set or cleared
Device_Clear_Feature:		; We have no features that can be set or cleared 
Interface_Clear_Feature: 	; We have no features that can be set or cleared
Endpoint_Sync_Frame:		; We are not an Isonchronous device

Invalid:			; Invalid Request made, STALL the Endpoint
	SETB	STALL
Reply:	RET

Set_Address:			; Set the address that the SIE will respond to
	SETB	SetAddress
	RET

Set_Report:				; Host wants to sent us a Report. 
; The ONLY case in this example where host sends data to us
	JNB	Configured, Invalid	; Need to be Configured to do this command
	CALL	GetOutputReport		; Handled in EZUSB.A51
	JMP	ProcessOutputReport	; RETurn via this subroutine
Get_Report:				; Host wants a Report
	JNB	Configured, Invalid	; Need to be Configured to do this command 
	MOV	ReplyBuffer, #42H  	; Reply with a recognizable (arbitary) value
	RET
Get_Configuration:			; Respond with CurrentConfiguration
	MOV	ReplyBuffer, CurrentConfiguration
	RET	
Device_Get_Status:			; Only two bits of Device Status are defined
	MOV	ReplyBuffer, #1		; Bit 1=Remote Wakeup(=0), Bit 0=Self Powered(=1)
	RET
Interface_Get_Status:			; Interface Status is currently defined as 0
Endpoint_Get_Status:
        MOV	ReplyCount, #2		; Need a two byte 0 response
	RET
Set_Configuration:   			; Valid values are 0 and 1
	MOV	A, wValueLow
	JZ	Deconfigured
	DEC	A
	JNZ	Invalid
	SETB	Configured
	MOV	CurrentConfiguration, #1
	RET
Deconfigured:
	CLR	Configured
	MOV	CurrentConfiguration, A
	RET
Get_Descriptor:		   		; Host wants to know who/what we are
	SETB	IsDescriptor
	MOV	A, wValueHigh
	DEC	A			; Valid Values are 1, 2 and 3
	MOV	DPTR, #DeviceDescriptor
	JZ	ReturnLength
	DEC	A
	MOV	DPTR, #ConfigurationDescriptor
	JNZ	TryString
	MOV	A, #ConfigLength
	RET
TryString:
	DEC	A
	JNZ	Invalid
; Request is for a String Descriptor
	MOV	DPTR, #String0		; Point to String 0
	MOV	A, wValueLow		; Get String Index
NextString:
	JZ	ReturnLength
	MOV	R7, A			; Save String Index
	CALL	NextDPTR
	MOVX	A, @DPTR		; Get the String Length (= 0 means we're at Backstop)
	JZ	Invalid			; Asked for a string I don't have 
	MOV	A, R7
	DEC	A
	JMP	NextString		; Check if we are there yet
Get_Class_Descriptor: 			; Valid values are 21H, 22H, 23H for Class Request
	SETB	IsDescriptor
	MOV	A, wValueHigh
	CLR	C
	SUBB	A, #21H
	MOV	DPTR, #HIDDescriptor
	JZ	ReturnLength
	DEC	A
	MOV	DPTR, #ReportDescriptor
	JZ	ReturnRDlength
;	DEC	A			; This example does not use Physical Descriptors
;	JZ	Send_Physical_Descriptor
	JMP	Invalid
;
ReturnLength:
	MOVX	A, @DPTR		; Get Descriptor Length (first byte)
	RET
ReturnRDlength:				; Report Descriptor is different format
	MOV	A, #ReportLength
	RET
; Error check: this MUST be on within a page of Subroutines
WithinSamePage EQU $ - Subroutines	
;

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美精品一区二区久久久 | 色88888久久久久久影院按摩| 日韩一区欧美一区| 亚洲人成小说网站色在线| 在线观看日韩国产| 国产真实乱子伦精品视频| 亚洲视频在线观看三级| 精品久久国产97色综合| 欧美伊人精品成人久久综合97| 麻豆成人av在线| 一区二区三区国产精华| 国产亚洲短视频| 欧美男人的天堂一二区| 91免费小视频| 国产精品一色哟哟哟| 日本午夜精品一区二区三区电影| 亚洲欧洲www| 国产午夜亚洲精品羞羞网站| 欧美男同性恋视频网站| 日本精品一级二级| 成人精品免费视频| 国产一区二区三区观看| 日本美女视频一区二区| 亚洲一区欧美一区| 最新成人av在线| 2017欧美狠狠色| 日韩欧美国产综合一区 | 国产成人aaa| 久久99国产精品麻豆| 午夜精品福利在线| 亚洲午夜电影在线| 国产一区欧美日韩| 免费不卡在线观看| 婷婷六月综合网| 亚洲国产色一区| 亚洲欧美日韩综合aⅴ视频| 国产午夜精品福利| 久久男人中文字幕资源站| 欧美精品一区男女天堂| 日韩精品一区二区三区中文不卡| 欧美精品久久一区| 6080午夜不卡| 欧美一区二区在线不卡| 欧美一区二区三区人| 欧美一区二区三区四区五区| 在线播放/欧美激情| 欧美一区二区女人| 日韩欧美在线网站| 26uuu亚洲综合色| 久久嫩草精品久久久精品一| 国产亚洲婷婷免费| 欧美激情中文不卡| 亚洲视频电影在线| 夜夜嗨av一区二区三区网页| 亚洲一卡二卡三卡四卡| 天堂资源在线中文精品| 日韩av电影一区| 精品中文av资源站在线观看| 黄网站免费久久| 成人动漫一区二区三区| 色综合天天综合色综合av | 欧美日韩高清一区二区不卡| 欧美精品三级在线观看| 日韩女优av电影在线观看| 久久午夜羞羞影院免费观看| 久久精品视频网| 日韩一区中文字幕| 亚洲一级不卡视频| 久久国产视频网| 风间由美中文字幕在线看视频国产欧美| 成人av电影在线播放| 99精品久久只有精品| 欧美综合天天夜夜久久| 日韩亚洲欧美一区| 国产精品美女视频| 亚洲成人激情综合网| 久久精品国产第一区二区三区| 欧美一区二区三区免费大片| 日韩欧美一区二区免费| 国产亚洲综合av| 一区二区三区四区视频精品免费| 午夜在线成人av| 国产乱人伦精品一区二区在线观看| 99在线视频精品| 欧美电影影音先锋| 亚洲国产精品黑人久久久| 午夜精品一区二区三区三上悠亚| 激情小说亚洲一区| 日本精品一区二区三区四区的功能| 日韩一区二区三区高清免费看看| 国产色婷婷亚洲99精品小说| 亚洲成人免费电影| 国产成人激情av| 在线不卡一区二区| 国产精品久久午夜| 另类综合日韩欧美亚洲| 色综合网站在线| 国产亚洲欧美一级| 五月婷婷久久综合| 91亚洲国产成人精品一区二区三 | 91精品国产91久久久久久一区二区 | 欧美激情一区二区三区蜜桃视频| 亚洲成在线观看| 成人一级视频在线观看| 3d成人动漫网站| 亚洲免费在线看| 国产精品99久久久久久似苏梦涵| 欧美三电影在线| 亚洲欧洲成人精品av97| 国产一区二区三区不卡在线观看 | 亚洲一区二区高清| 不卡的电视剧免费网站有什么| 欧美一区二区三区在线视频 | 国产精品色哟哟网站| 久久精品国产网站| 欧美丝袜丝交足nylons图片| 中文字幕乱码亚洲精品一区| 精油按摩中文字幕久久| 欧美精品丝袜久久久中文字幕| 一区二区三区不卡视频 | 国产福利精品一区二区| 日韩欧美国产一区二区在线播放| 亚洲成人综合网站| 欧美三级资源在线| 亚洲精品美腿丝袜| 色综合婷婷久久| 亚洲日本va午夜在线影院| 成人h动漫精品一区二| 久久精品这里都是精品| 激情久久五月天| 日韩欧美在线不卡| 免费欧美日韩国产三级电影| 一区二区三区日韩欧美精品| 成人深夜在线观看| 国产日产欧美精品一区二区三区| 激情综合网av| 精品国产露脸精彩对白| 欧美bbbbb| 337p亚洲精品色噜噜| 视频在线观看一区二区三区| 欧美年轻男男videosbes| 午夜视频久久久久久| 911国产精品| 蜜臀av一区二区在线免费观看| 日韩欧美一级二级三级| 麻豆91在线观看| 欧美精品一区二| 国产激情视频一区二区在线观看| 欧美国产欧美亚州国产日韩mv天天看完整| 国内精品伊人久久久久影院对白| 欧美精品一区二区三区很污很色的| 久久成人久久爱| 久久久久久久国产精品影院| 懂色av一区二区夜夜嗨| 国产精品理伦片| 欧美亚洲综合网| 免费成人av资源网| 久久精品亚洲精品国产欧美kt∨| 粉嫩一区二区三区在线看| 亚洲欧洲国产日本综合| 欧美少妇性性性| 免费高清不卡av| 国产欧美日韩在线看| 91小视频免费观看| 婷婷亚洲久悠悠色悠在线播放| 精品久久五月天| 成人午夜伦理影院| 亚洲综合一二三区| 日韩欧美一区二区久久婷婷| 粉嫩aⅴ一区二区三区四区五区| 亚洲免费在线视频一区 二区| 欧美精品久久天天躁| 国产露脸91国语对白| 亚洲免费av观看| 精品免费视频.| 99精品久久99久久久久| 天堂一区二区在线免费观看| 亚洲成人精品一区| 色94色欧美sute亚洲线路一久| 亚洲高清不卡在线观看| 欧美精品一区二区蜜臀亚洲| 99精品视频在线观看| 日本亚洲最大的色成网站www| 亚洲国产高清在线观看视频| 欧美探花视频资源| 国产精品中文欧美| 一区二区三区免费网站| 精品日韩99亚洲| 91久久免费观看| 精品写真视频在线观看| 亚洲欧美一区二区三区极速播放 | 欧美一区二区久久| 成人av在线播放网站| 免费人成网站在线观看欧美高清| 中文字幕五月欧美| 日韩女优电影在线观看| 在线免费观看一区| 成人综合在线观看| 精品在线你懂的| 五月天一区二区三区|