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

📄 chap9.asm

📁 SPCE061A_USB可以让你自己检测开发板是否能正常动作
💻 ASM
📖 第 1 页 / 共 5 页
字号:
	pc=L14	// Indirect jump
L13:
.debug
	.dw '.stabn 0x44,0,172,',0,0
	.dd LM27-_F_Get_Status
	.dw 0x0d,0x0a
.code
LM27:
	R1=BP	// QImode move
	R2=BP+1
	R1=0	// QImode move
	R3=R2	// QImode move
	[R3]=R1	// QImode move
L14:
.debug
	.dw '.stabn 0x44,0,173,',0,0
	.dd LM28-_F_Get_Status
	.dw 0x0d,0x0a
.code
LM28:
	R1=BP	// QImode move
	R2=BP+1
	R1=R2	// QImode move
	R2=R2+1
	R1=0	// QImode move
	R3=R2	// QImode move
	[R3]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,174,',0,0
	.dd LM29-_F_Get_Status
	.dw 0x0d,0x0a
.code
LM29:
	R1=2	// QImode move
	[SP--]=R1	// QImode move
	R1=BP+1
	[SP--]=R1	// QImode move
	call _F_Single_Transmit	// call without return value
	SP=SP+2
.debug
	.dw '.stabn 0x44,0,175,',0,0
	.dd LM30-_F_Get_Status
	.dw 0x0d,0x0a
.code
LM30:
	pc=L7	// Indirect jump
L10:
.debug
	.dw '.stabn 0x44,0,177,',0,0
	.dd LM31-_F_Get_Status
	.dw 0x0d,0x0a
.code
LM31:
	call _F_Stall_Ep0	// call without return value
L15:
L9:
L7:
.debug
	.dw '.stabn 0x44,0,178,',0,0
	.dd LM32-_F_Get_Status
	.dw 0x0d,0x0a
.code
LM32:
LBE2:
.debug
	.dw '.stabn 0x44,0,178,',0,0
	.dd LM33-_F_Get_Status
	.dw 0x0d,0x0a
.code
LM33:
L3:

	sp+=6
	pop bp from [sp]
	retf
	.endp	// end of F_Get_Status

.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB2-_F_Get_Status
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabs "endp:4",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "txdat:68=ar1;0;1;4",128,0,0,1',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "bRecipient:4",128,0,0,3',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "c:4",128,0,0,4',0x0d,0x0a
.CODE
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE2-_F_Get_Status
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabf ',0,0
	.dd LME2-_F_Get_Status
	.dw 0x0d,0x0a
.code
LME2:
.code
.debug
	.dw '.stabs "F_Clear_Feature:F19",36,0,0,',0,0,offset _F_Clear_Feature,seg _F_Clear_Feature,0x0d,0x0a
.CODE
.public _F_Clear_Feature
_F_Clear_Feature:	.proc
.debug
	.dw '.stabn 0x44,0,181,',0,0
	.dd LM34-_F_Clear_Feature
	.dw 0x0d,0x0a
.code
LM34:
	// total=3, vars=3
	// frame_pointer_needed: 1
	push bp to [sp]
	sp-=3
	bp=sp+1

	R1=BP+6
	[bp+2]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,182,',0,0
	.dd LM35-_F_Clear_Feature
	.dw 0x0d,0x0a
.code
LM35:
LBB3:
.debug
	.dw '.stabn 0x44,0,183,',0,0
	.dd LM36-_F_Clear_Feature
	.dw 0x0d,0x0a
.code
LM36:
	R2=BP	// QImode move
	R1=BP+1
	R2=[_ControlData]	// QImode move
	R3=R2&31
	R2=R1	// QImode move
	[R2]=R3	// QImode move
.debug
	.dw '.stabn 0x44,0,184,',0,0
	.dd LM37-_F_Clear_Feature
	.dw 0x0d,0x0a
.code
LM37:
	R1=BP	// QImode move
	R2=BP+1
	R3=R2	// QImode move
	R1=[R3]	// QImode move
	CMP R1,0	// QImode test
	JZ L30	// QImode NE
	PC=L24
L30:
	R1=[_ControlData+2]	// HImode RD=[Label]
	R2=[_ControlData+3]
	CMP R2,0	// HImode compare
	JNZ L31	// HImode NE
	CMP R1,1
	JZ  L32
L31:
	PC=L24
L32:
.debug
	.dw '.stabn 0x44,0,186,',0,0
	.dd LM38-_F_Clear_Feature
	.dw 0x0d,0x0a
.code
LM38:
LBB4:
	call _F_Interrupt_Off	// call with return value
.debug
	.dw '.stabn 0x44,0,187,',0,0
	.dd LM39-_F_Clear_Feature
	.dw 0x0d,0x0a
.code
LM39:
	R1=[_bEPPflags]	// QImode move
	R2=(-9)	// QImode move
	[_bEPPflags]=R1&R2
.debug
	.dw '.stabn 0x44,0,188,',0,0
	.dd LM40-_F_Clear_Feature
	.dw 0x0d,0x0a
.code
LM40:
	call _F_Interrupt_On	// call with return value
.debug
	.dw '.stabn 0x44,0,189,',0,0
	.dd LM41-_F_Clear_Feature
	.dw 0x0d,0x0a
.code
LM41:
	R1=0	// QImode move
	[SP--]=R1	// QImode move
	R1=0	// QImode move
	[SP--]=R1	// QImode move
	call _F_Single_Transmit	// call without return value
	SP=SP+2
.debug
	.dw '.stabn 0x44,0,190,',0,0
	.dd LM42-_F_Clear_Feature
	.dw 0x0d,0x0a
.code
LM42:
LBE4:
	pc=L25	// Indirect jump
L24:
.debug
	.dw '.stabn 0x44,0,191,',0,0
	.dd LM43-_F_Clear_Feature
	.dw 0x0d,0x0a
.code
LM43:
	R1=BP	// QImode move
	R2=BP+1
	R3=R2	// QImode move
	R1=[R3]	// QImode move
	CMP R1,2	// QImode compare
	JZ L33	// QImode NE
	PC=L26
L33:
	R1=[_ControlData+2]	// HImode RD=[Label]
	R2=[_ControlData+3]
	CMP R2,0	// HImode test
	JNZ L34	// HImode NE
	CMP R1,0
	JZ  L35
L34:
	PC=L26
L35:
.debug
	.dw '.stabn 0x44,0,193,',0,0
	.dd LM44-_F_Clear_Feature
	.dw 0x0d,0x0a
.code
LM44:
	R1=[_ControlData+4]	// QImode move
	R2=R1&3
	[BP]=R2	// QImode move
.debug
	.dw '.stabn 0x44,0,194,',0,0
	.dd LM45-_F_Clear_Feature
	.dw 0x0d,0x0a
.code
LM45:
	R3=[_ControlData+4]	// HImode RD=[Label]
	R4=[_ControlData+5]
	R1=R3&128	// HImode RD=RS&#IMM16
	R2=R4&0
	CMP R2,0	// HImode test
	JNZ L37	// HImode EQ
	CMP R1,0
	JNZ L37
	PC=L27
L37:
.debug
	.dw '.stabn 0x44,0,195,',0,0
	.dd LM46-_F_Clear_Feature
	.dw 0x0d,0x0a
.code
LM46:
	R1=0	// QImode move
	[SP--]=R1	// QImode move
	R1=[BP]	// QImode move
	R2=R1	// QImode move
	R1=R2 lsl 1
	R2=R1+1
	[SP--]=R2	// QImode move
	call _F_D12_SetEndpointStatus	// call without return value
	SP=SP+2
	pc=L28	// Indirect jump
L27:
.debug
	.dw '.stabn 0x44,0,197,',0,0
	.dd LM47-_F_Clear_Feature
	.dw 0x0d,0x0a
.code
LM47:
	R1=0	// QImode move
	[SP--]=R1	// QImode move
	R1=[BP]	// QImode move
	R2=R1	// QImode move
	R1=R2 lsl 1
	[SP--]=R1	// QImode move
	call _F_D12_SetEndpointStatus	// call without return value
	SP=SP+2
L28:
.debug
	.dw '.stabn 0x44,0,198,',0,0
	.dd LM48-_F_Clear_Feature
	.dw 0x0d,0x0a
.code
LM48:
	R1=0	// QImode move
	[SP--]=R1	// QImode move
	R1=0	// QImode move
	[SP--]=R1	// QImode move
	call _F_Single_Transmit	// call without return value
	SP=SP+2
.debug
	.dw '.stabn 0x44,0,199,',0,0
	.dd LM49-_F_Clear_Feature
	.dw 0x0d,0x0a
.code
LM49:
	pc=L25	// Indirect jump
L26:
.debug
	.dw '.stabn 0x44,0,201,',0,0
	.dd LM50-_F_Clear_Feature
	.dw 0x0d,0x0a
.code
LM50:
	call _F_Stall_Ep0	// call without return value
L29:
L25:
.debug
	.dw '.stabn 0x44,0,202,',0,0
	.dd LM51-_F_Clear_Feature
	.dw 0x0d,0x0a
.code
LM51:
LBE3:
.debug
	.dw '.stabn 0x44,0,202,',0,0
	.dd LM52-_F_Clear_Feature
	.dw 0x0d,0x0a
.code
LM52:
L23:

	sp+=3
	pop bp from [sp]
	retf
	.endp	// end of F_Clear_Feature

.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB3-_F_Clear_Feature
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabs "endp:4",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "bRecipient:4",128,0,0,1',0x0d,0x0a
.CODE
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB4-_F_Clear_Feature
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE4-_F_Clear_Feature
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE3-_F_Clear_Feature
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabf ',0,0
	.dd LME3-_F_Clear_Feature
	.dw 0x0d,0x0a
.code
LME3:
.code
.debug
	.dw '.stabs "F_Set_Feature:F19",36,0,0,',0,0,offset _F_Set_Feature,seg _F_Set_Feature,0x0d,0x0a
.CODE
.public _F_Set_Feature
_F_Set_Feature:	.proc
.debug
	.dw '.stabn 0x44,0,206,',0,0
	.dd LM53-_F_Set_Feature
	.dw 0x0d,0x0a
.code
LM53:
	// total=3, vars=3
	// frame_pointer_needed: 1
	push bp to [sp]
	sp-=3
	bp=sp+1

	R1=BP+6
	[bp+2]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,207,',0,0
	.dd LM54-_F_Set_Feature
	.dw 0x0d,0x0a
.code
LM54:
LBB5:
.debug
	.dw '.stabn 0x44,0,208,',0,0
	.dd LM55-_F_Set_Feature
	.dw 0x0d,0x0a
.code
LM55:
	R2=BP	// QImode move
	R1=BP+1
	R2=[_ControlData]	// QImode move
	R3=R2&31
	R2=R1	// QImode move
	[R2]=R3	// QImode move
.debug
	.dw '.stabn 0x44,0,209,',0,0
	.dd LM56-_F_Set_Feature
	.dw 0x0d,0x0a
.code
LM56:
	R1=BP	// QImode move
	R2=BP+1
	R3=R2	// QImode move
	R1=[R3]	// QImode move
	CMP R1,0	// QImode test
	JZ L45	// QImode NE
	PC=L39
L45:
	R1=[_ControlData+2]	// HImode RD=[Label]
	R2=[_ControlData+3]
	CMP R2,0	// HImode compare
	JNZ L46	// HImode NE
	CMP R1,1
	JZ  L47
L46:
	PC=L39
L47:
.debug
	.dw '.stabn 0x44,0,211,',0,0
	.dd LM57-_F_Set_Feature
	.dw 0x0d,0x0a
.code
LM57:
LBB6:
	call _F_Interrupt_Off	// call with return value
.debug
	.dw '.stabn 0x44,0,212,',0,0
	.dd LM58-_F_Set_Feature
	.dw 0x0d,0x0a
.code
LM58:
	R1=[_bEPPflags]	// QImode move
	R2=8	// QImode move
	[_bEPPflags]=R1|R2
.debug
	.dw '.stabn 0x44,0,213,',0,0
	.dd LM59-_F_Set_Feature
	.dw 0x0d,0x0a
.code
LM59:
	call _F_Interrupt_On	// call with return value
.debug
	.dw '.stabn 0x44,0,214,',0,0
	.dd LM60-_F_Set_Feature
	.dw 0x0d,0x0a
.code
LM60:
	R1=0	// QImode move
	[SP--]=R1	// QImode move
	R1=0	// QImode move
	[SP--]=R1	// QImode move
	call _F_Single_Transmit	// call without return value
	SP=SP+2
.debug
	.dw '.stabn 0x44,0,215,',0,0
	.dd LM61-_F_Set_Feature
	.dw 0x0d,0x0a
.code
LM61:
LBE6:
	pc=L40	// Indirect jump
L39:
.debug
	.dw '.stabn 0x44,0,216,',0,0
	.dd LM62-_F_Set_Feature
	.dw 0x0d,0x0a
.code
LM62:
	R1=BP	// QImode move
	R2=BP+1
	R3=R2	// QImode move
	R1=[R3]	// QImode move
	CMP R1,2	// QImode compare
	JZ L48	// QImode NE
	PC=L41
L48:
	R1=[_ControlData+2]	// HImode RD=[Label]
	R2=[_ControlData+3]
	CMP R2,0	// HImode test
	JNZ L49	// HImode NE
	CMP R1,0
	JZ  L50
L49:
	PC=L41
L50:
.debug
	.dw '.stabn 0x44,0,218,',0,0
	.dd LM63-_F_Set_Feature
	.dw 0x0d,0x0a
.code
LM63:
	R1=[_ControlData+4]	// QImode move
	R2=R1&3
	[BP]=R2	// QImode move
.debug
	.dw '.stabn 0x44,0,219,',0,0
	.dd LM64-_F_Set_Feature
	.dw 0x0d,0x0a
.code
LM64:
	R3=[_ControlData+4]	// HImode RD=[Label]
	R4=[_ControlData+5]
	R1=R3&128	// HImode RD=RS&#IMM16
	R2=R4&0
	CMP R2,0	// HImode test
	JNZ L52	// HImode EQ
	CMP R1,0
	JNZ L52
	PC=L42
L52:
.debug
	.dw '.stabn 0x44,0,220,',0,0
	.dd LM65-_F_Set_Feature
	.dw 0x0d,0x0a
.code
LM65:
	R1=1	// QImode move
	[SP--]=R1	// QImode move
	R1=[BP]	// QImode move
	R2=R1	// QImode move
	R1=R2 lsl 1
	R2=R1+1
	[SP--]=R2	// QImode move
	call _F_D12_SetEndpointStatus	// call without return value
	SP=SP+2
	pc=L43	// Indirect jump
L42:
.debug
	.dw '.stabn 0x44,0,222,',0,0
	.dd LM66-_F_Set_Feature
	.dw 0x0d,0x0a
.code
LM66:
	R1=1	// QImode move
	[SP--]=R1	// QImode move
	R1=[BP]	// QImode move
	R2=R1	// QImode move
	R1=R2 lsl 1
	[SP--]=R1	// QImode move
	call _F_D12_SetEndpointStatus	// call without return value
	SP=SP+2
L43:
.debug
	.dw '.stabn 0x44,0,223,',0,0
	.dd LM67-_F_Set_Feature
	.dw 0x0d,0x0a
.code
LM67:
	R1=0	// QImode move
	[SP--]=R1	// QImode move
	R1=0	// QImode move
	[SP--]=R1	// QImode move
	call _F_Single_Transmit	// call without return value
	SP=SP+2
.debug
	.dw '.stabn 0x44,0,224,',0,0
	.dd LM68-_F_Set_Feature
	.dw 0x0d,0x0a
.code
LM68:
	pc=L40	// Indirect jump
L41:
.debug
	.dw '.stabn 0x44,0,226,',0,0
	.dd LM69-_F_Set_Feature
	.dw 0x0d,0x0a
.code
LM69:
	call _F_Stall_Ep0	// call without return value
L44:
L40:
.debug
	.dw '.stabn 0x44,0,227,',0,0
	.dd LM70-_F_Set_Feature
	.dw 0x0d,0x0a
.code
LM70:
LBE5:
.debug
	.dw '.stabn 0x44,0,227,',0,0
	.dd LM71-_F_Set_Feature
	.dw 0x0d,0x0a
.code
LM71:
L38:

	sp+=3
	pop bp from [sp]
	retf
	.endp	// end of F_Set_Feature

.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB5-_F_Set_Feature
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabs "endp:4",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "bRecipient:4",128,0,0,1',0x0d,0x0a
.CODE
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB6-_F_Set_Feature
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE6-_F_Set_Feature
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE5-_F_Set_Feature
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabf ',0,0
	.dd LME4-_F_Set_Feature
	.dw 0x0d,0x0a
.code
LME4:
.code
.debug
	.dw '.stabs "F_Set_Address:F19",36,0,0,',0,0,offset _F_Set_Address,seg _F_Set_Address,0x0d,0x0a
.CODE
.public _F_Set_Address
_F_Set_Address:	.proc
.debug
	.dw '.stabn 0x44,0,230,',0,0
	.dd LM72-_F_Set_Address
	.dw 0x0d,0x0a
.code
LM72:
	// total=1, vars=1
	// frame_pointer_needed: 1
	push bp to [sp]
	sp-=1
	bp=sp+1

⌨️ 快捷键说明

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