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

📄 main.asm

📁 图象识别礼包 原理图采用OrCad软件或PowerPCB软件打 识别各种格式 位图 矢量图
💻 ASM
字号:
// GCC for SUNPLUS u'nSP version 1.0.10
// Command: D:\PROGRA~1\Sunplus\UNSPID~1.2\unSPIDE\cc1.exe D:\DOCUME~1\xinyan\LOCALS~1\Temp\cccvdaaa.i -fkeep-inline-functions -quiet -dumpbase main.c -gstabs -o .\Debug/main.asm
// gcc2_compiled.:

.stabs "G:\\本周杂项\\毕业设计大礼包\\10图象识别礼包\\程序源代码\\图像识别模组源代码/", 0x64, 0, 3, Ltext0
.stabs "G:/本周杂项/毕业设计大礼包/10图象识别礼包/程序源代码/图像识别模组源代码/main.c", 0x64, 0, 3, Ltext0
.code
Ltext0:
.debug
	.dw '.stabs "int:t1=r1;-32768;32767;",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "char:t2=r2;0;127;",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "long int:t3=r3;-2147483648;2147483647;",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "unsigned int:t4=r4;0;65535;",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "long unsigned int:t5=r5;0;4294967295;",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "long long int:t6=r6;-2147483648;2147483647;",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "long long unsigned int:t7=r7;0;4294967295;",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "short int:t8=r8;-32768;32767;",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "short unsigned int:t9=r9;0;65535;",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "signed char:t10=r10;-32768;32767;",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "unsigned char:t11=r11;0;65535;",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "float:t12=r1;2;0;",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "double:t13=r1;2;0;",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "long double:t14=r1;2;0;",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "complex int:t15=s2real:1,0,16;imag:1,16,16;;",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "complex float:t16=r16;2;0;",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "complex double:t17=r17;2;0;",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "complex long double:t18=r18;2;0;",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "void:t19=19",128,0,0,0',0x0d,0x0a
.CODE
.code
.debug
	.dw '.stabs "PlayRespond:F19",36,0,0,',0,0,offset _PlayRespond,seg _PlayRespond,0x0d,0x0a
.CODE
.public _PlayRespond
_PlayRespond:	.proc
.debug
	.dw '.stabn 0x44,0,75,',0,0
	.dd LM1-_PlayRespond
	.dw 0x0d,0x0a
.code
LM1:
	// total=2, vars=2
	// frame_pointer_needed: 1
	push bp to [sp]
	sp-=2
	bp=sp+1

	R1=BP+5
	[bp+1]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,76,',0,0
	.dd LM2-_PlayRespond
	.dw 0x0d,0x0a
.code
LM2:
LBB2:
.debug
	.dw '.stabn 0x44,0,77,',0,0
	.dd LM3-_PlayRespond
	.dw 0x0d,0x0a
.code
LM3:
	R1=[28717]	// QImode move
	[BP]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,78,',0,0
	.dd LM4-_PlayRespond
	.dw 0x0d,0x0a
.code
LM4:
	R1=1	// QImode move
	[SP--]=R1	// QImode move
	call _SACM_A2000_Initial	// call with return value
	SP=SP+1
.debug
	.dw '.stabn 0x44,0,79,',0,0
	.dd LM5-_PlayRespond
	.dw 0x0d,0x0a
.code
LM5:
	R2=[28717]	// QImode move
	R1=R2	// QImode move
	R1|=[BP]	// iorqi3_r0R
	[28717]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,80,',0,0
	.dd LM6-_PlayRespond
	.dw 0x0d,0x0a
.code
LM6:
	R1=3	// QImode move
	[SP--]=R1	// QImode move
	call _SACM_A2000_Volume	// call with return value
	SP=SP+1
.debug
	.dw '.stabn 0x44,0,81,',0,0
	.dd LM7-_PlayRespond
	.dw 0x0d,0x0a
.code
LM7:
	R1=3	// QImode move
	[SP--]=R1	// QImode move
	R1=3	// QImode move
	[SP--]=R1	// QImode move
	R2=[bp+1]	// QImode move
	R1=[R2]	// QImode move
	[SP--]=R1	// QImode move
	call _SACM_A2000_Play	// call with return value
	SP=SP+3
.debug
	.dw '.stabn 0x44,0,82,',0,0
	.dd LM8-_PlayRespond
	.dw 0x0d,0x0a
.code
LM8:
L3:
	call _SACM_A2000_Status	// call with return value
	R2=R1&1
	CMP R2,0	// QImode test
	JZ L6	// QImode NE
	PC=L5
L6:
	pc=L4	// jump
L5:
.debug
	.dw '.stabn 0x44,0,84,',0,0
	.dd LM9-_PlayRespond
	.dw 0x0d,0x0a
.code
LM9:
LBB3:
	call _SACM_A2000_ServiceLoop	// call with return value
.debug
	.dw '.stabn 0x44,0,85,',0,0
	.dd LM10-_PlayRespond
	.dw 0x0d,0x0a
.code
LM10:
LBE3:
	pc=L3	// jump
L4:
.debug
	.dw '.stabn 0x44,0,86,',0,0
	.dd LM11-_PlayRespond
	.dw 0x0d,0x0a
.code
LM11:
	call _SACM_A2000_Stop	// call with return value
.debug
	.dw '.stabn 0x44,0,87,',0,0
	.dd LM12-_PlayRespond
	.dw 0x0d,0x0a
.code
LM12:
LBE2:
.debug
	.dw '.stabn 0x44,0,87,',0,0
	.dd LM13-_PlayRespond
	.dw 0x0d,0x0a
.code
LM13:
L2:

	sp+=2
	pop bp from [sp]
	retf
	.endp	// end of PlayRespond

.debug
	.dw '.stabs "Result:p1",160,0,0,5',0x0d,0x0a
.CODE
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB2-_PlayRespond
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabs "Ret:4",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB3-_PlayRespond
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE3-_PlayRespond
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE2-_PlayRespond
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabf ',0,0
	.dd LME1-_PlayRespond
	.dw 0x0d,0x0a
.code
LME1:
.code
.debug
	.dw '.stabs "main:F1",36,0,0,',0,0,offset _main,seg _main,0x0d,0x0a
.CODE
.public _main
_main:	.proc
.debug
	.dw '.stabn 0x44,0,100,',0,0
	.dd LM14-_main
	.dw 0x0d,0x0a
.code
LM14:
	// total=1, vars=1
	// frame_pointer_needed: 1
	push bp to [sp]
	sp-=1
	bp=sp+1

	R1=BP+4
	[BP]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,101,',0,0
	.dd LM15-_main
	.dw 0x0d,0x0a
.code
LM15:
LBB4:
	R1=0	// QImode move
	[_Key]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,102,',0,0
	.dd LM16-_main
	.dw 0x0d,0x0a
.code
LM16:
	R1=0	// QImode move
	[_gActivated]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,103,',0,0
	.dd LM17-_main
	.dw 0x0d,0x0a
.code
LM17:
	R1=0	// QImode move
	[_VR_OverFlag]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,104,',0,0
	.dd LM18-_main
	.dw 0x0d,0x0a
.code
LM18:
	R1=0	// QImode move
	[_VR_TimeFlag]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,105,',0,0
	.dd LM19-_main
	.dw 0x0d,0x0a
.code
LM19:
	R1=0	// QImode move
	[_VR_TimeDeldy]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,106,',0,0
	.dd LM20-_main
	.dw 0x0d,0x0a
.code
LM20:
	R1=0	// QImode move
	[_SleepCount]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,108,',0,0
	.dd LM21-_main
	.dw 0x0d,0x0a
.code
LM21:
	R1=1	// QImode move
	[28697]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,110,',0,0
	.dd LM22-_main
	.dw 0x0d,0x0a
.code
LM22:
	R1=(-1280)	// QImode move
	[SP--]=R1	// QImode move
	R1=(-1280)	// QImode move
	[SP--]=R1	// QImode move
	R1=(-1280)	// QImode move
	[SP--]=R1	// QImode move
	call _SP_Init_IOA	// call with return value
	SP=SP+3
.debug
	.dw '.stabn 0x44,0,111,',0,0
	.dd LM23-_main
	.dw 0x0d,0x0a
.code
LM23:
	R1=(-1)	// QImode move
	[SP--]=R1	// QImode move
	R1=31	// QImode move
	[SP--]=R1	// QImode move
	R1=(-1)	// QImode move
	[SP--]=R1	// QImode move
	call _SP_Init_IOB	// call with return value
	SP=SP+3
.debug
	.dw '.stabn 0x44,0,112,',0,0
	.dd LM24-_main
	.dw 0x0d,0x0a
.code
LM24:
	call _Enable_1KHzAnd2HzInt	// call with return value
.debug
	.dw '.stabn 0x44,0,113,',0,0
	.dd LM25-_main
	.dw 0x0d,0x0a
.code
LM25:
	call _ResetEagle3	// call with return value
.debug
	.dw '.stabn 0x44,0,114,',0,0
	.dd LM26-_main
	.dw 0x0d,0x0a
.code
LM26:
	call _IntialToEagle3	// call with return value
.debug
	.dw '.stabn 0x44,0,116,',0,0
	.dd LM27-_main
	.dw 0x0d,0x0a
.code
LM27:
	R1=0	// QImode move
	[_VR_TimeFlag]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,117,',0,0
	.dd LM28-_main
	.dw 0x0d,0x0a
.code
LM28:
	R1=0	// QImode move
	[_VR_TimeDeldy]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,118,',0,0
	.dd LM29-_main
	.dw 0x0d,0x0a
.code
LM29:
L8:
	R1=[_VR_TimeFlag]	// QImode move
	CMP R1,1	// QImode compare
	JZ L21	// QImode NE
	PC=L10
L21:
	pc=L9	// jump
L10:
.debug
	.dw '.stabn 0x44,0,119,',0,0
	.dd LM30-_main
	.dw 0x0d,0x0a
.code
LM30:
	R1=5000	// QImode move
	[SP--]=R1	// QImode move
	call _Delay	// call with return value
	SP=SP+1
	pc=L8	// jump
L9:
.debug
	.dw '.stabn 0x44,0,121,',0,0
	.dd LM31-_main
	.dw 0x0d,0x0a
.code
LM31:
	call _SetAWBOFF	// call with return value
.debug
	.dw '.stabn 0x44,0,122,',0,0
	.dd LM32-_main
	.dw 0x0d,0x0a
.code
LM32:
	R1=1	// QImode move
	[SP--]=R1	// QImode move
	call _PlayRespond	// call without return value
	SP=SP+1
.debug
	.dw '.stabn 0x44,0,124,',0,0
	.dd LM33-_main
	.dw 0x0d,0x0a
.code
LM33:
L11:
	pc=L13	// jump
	pc=L12	// jump
L13:
.debug
	.dw '.stabn 0x44,0,126,',0,0
	.dd LM34-_main
	.dw 0x0d,0x0a
.code
LM34:
LBB5:
	R2=[28697]	// QImode move
	R1=R2&(-32768)
	CMP R1,0	// QImode test
	JNZ L22	// QImode EQ
	PC=L14
L22:
.debug
	.dw '.stabn 0x44,0,128,',0,0
	.dd LM35-_main
	.dw 0x0d,0x0a
.code
LM35:
	R1=0	// QImode move
	[SP--]=R1	// QImode move
	call _PlayRespond	// call without return value
	SP=SP+1
.debug
	.dw '.stabn 0x44,0,129,',0,0
	.dd LM36-_main
	.dw 0x0d,0x0a
.code
LM36:
	R1=0	// QImode move
	[SP--]=R1	// QImode move
	call _PlayRespond	// call without return value
	SP=SP+1
.debug
	.dw '.stabn 0x44,0,130,',0,0
	.dd LM37-_main
	.dw 0x0d,0x0a
.code
LM37:
	R1=0	// QImode move
	[SP--]=R1	// QImode move
	call _PlayRespond	// call without return value
	SP=SP+1
.debug
	.dw '.stabn 0x44,0,131,',0,0
	.dd LM38-_main
	.dw 0x0d,0x0a
.code
LM38:
	R1=0	// QImode move
	[SP--]=R1	// QImode move
	call _PlayRespond	// call without return value
	SP=SP+1
L14:
.debug
	.dw '.stabn 0x44,0,133,',0,0
	.dd LM39-_main
	.dw 0x0d,0x0a
.code
LM39:
	R1=28672	// QImode move
	[SP--]=R1	// QImode move
	call _SP_Import	// call with return value
	SP=SP+1
	[_Key]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,134,',0,0
	.dd LM40-_main
	.dw 0x0d,0x0a
.code
LM40:
	R1=[_Key]	// QImode move
	R2=15	// QImode move
	[_Key]=R1&R2
.debug
	.dw '.stabn 0x44,0,135,',0,0
	.dd LM41-_main
	.dw 0x0d,0x0a
.code
LM41:
	R1=[_Key]	// QImode move
	CMP R1,0	// QImode test
	JNZ L23	// QImode EQ
	PC=L15
L23:
.debug
	.dw '.stabn 0x44,0,137,',0,0
	.dd LM42-_main
	.dw 0x0d,0x0a
.code
LM42:
	R1=[_Key]	// QImode move
	CMP R1,1	// QImode compare
	JNZ L24	// QImode EQ
	PC=L17
L24:
	CMP R1,2	// QImode compare
	JNZ L25	// QImode EQ
	PC=L18
L25:
	pc=L19	// jump
.debug
	.dw '.stabn 0x44,0,139,',0,0
	.dd LM43-_main
	.dw 0x0d,0x0a
.code
LM43:
LBB6:
L17:
.debug
	.dw '.stabn 0x44,0,140,',0,0
	.dd LM44-_main
	.dw 0x0d,0x0a
.code
LM44:
	R1=0	// QImode move
	[SP--]=R1	// QImode move
	call _PlayRespond	// call without return value
	SP=SP+1
.debug
	.dw '.stabn 0x44,0,141,',0,0
	.dd LM45-_main
	.dw 0x0d,0x0a
.code
LM45:
	call _VR_Search_Color	// call with return value
.debug
	.dw '.stabn 0x44,0,142,',0,0
	.dd LM46-_main
	.dw 0x0d,0x0a
.code
LM46:
	pc=L15	// jump
L18:
.debug
	.dw '.stabn 0x44,0,144,',0,0
	.dd LM47-_main
	.dw 0x0d,0x0a
.code
LM47:
	call _VR_Chase_Ball	// call with return value
.debug
	.dw '.stabn 0x44,0,145,',0,0
	.dd LM48-_main
	.dw 0x0d,0x0a
.code
LM48:
	pc=L15	// jump
L19:
.debug
	.dw '.stabn 0x44,0,147,',0,0
	.dd LM49-_main
	.dw 0x0d,0x0a
.code
LM49:
	pc=L15	// jump
	call _VR_Search_Color	// call with return value
.debug
	.dw '.stabn 0x44,0,148,',0,0
	.dd LM50-_main
	.dw 0x0d,0x0a
.code
LM50:
LBE6:
L16:
L15:
.debug
	.dw '.stabn 0x44,0,150,',0,0
	.dd LM51-_main
	.dw 0x0d,0x0a
.code
LM51:
LBE5:
	pc=L11	// jump
L12:
.debug
	.dw '.stabn 0x44,0,151,',0,0
	.dd LM52-_main
	.dw 0x0d,0x0a
.code
LM52:
LBE4:
.debug
	.dw '.stabn 0x44,0,151,',0,0
	.dd LM53-_main
	.dw 0x0d,0x0a
.code
LM53:
L7:

	sp+=1
	pop bp from [sp]
	retf
	.endp	// end of main

.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB4-_main
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB5-_main
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB6-_main
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE6-_main
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE5-_main
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE4-_main
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabf ',0,0
	.dd LME2-_main
	.dw 0x0d,0x0a
.code
LME2:
.debug
	.dw '.stabs "gActivated:G1",32,0,0,',0,0,offset _gActivated,seg _gActivated,0x0d,0x0a
.CODE
.ram
.public _gActivated
_gActivated:
	.dw 0
.debug
	.dw '.stabs "VR_PrevResult_Color:G1",32,0,0,',0,0,offset _VR_PrevResult_Color,seg _VR_PrevResult_Color,0x0d,0x0a
.CODE
.ram
.public _VR_PrevResult_Color
_VR_PrevResult_Color:
	.dw 0
.debug
	.dw '.stabs "VR_PrevResult_Shape:G1",32,0,0,',0,0,offset _VR_PrevResult_Shape,seg _VR_PrevResult_Shape,0x0d,0x0a
.CODE
.ram
.public _VR_PrevResult_Shape
_VR_PrevResult_Shape:
	.dw 0
.debug
	.dw '.stabs "VR_PrevResult_CenterX:G1",32,0,0,',0,0,offset _VR_PrevResult_CenterX,seg _VR_PrevResult_CenterX,0x0d,0x0a
.CODE
.ram
.public _VR_PrevResult_CenterX
_VR_PrevResult_CenterX:
	.dw 0
.debug
	.dw '.stabs "VR_PrevResult_CenterY:G1",32,0,0,',0,0,offset _VR_PrevResult_CenterY,seg _VR_PrevResult_CenterY,0x0d,0x0a
.CODE
.ram
.public _VR_PrevResult_CenterY
_VR_PrevResult_CenterY:
	.dw 0
.debug
	.dw '.stabs "VR_PrevResult_AreaH:G1",32,0,0,',0,0,offset _VR_PrevResult_AreaH,seg _VR_PrevResult_AreaH,0x0d,0x0a
.CODE
.ram
.public _VR_PrevResult_AreaH
_VR_PrevResult_AreaH:
	.dw 0
.debug
	.dw '.stabs "VR_PrevResult_AreaL:G1",32,0,0,',0,0,offset _VR_PrevResult_AreaL,seg _VR_PrevResult_AreaL,0x0d,0x0a
.CODE
.ram
.public _VR_PrevResult_AreaL
_VR_PrevResult_AreaL:
	.dw 0
.debug
	.dw '.stabs "VR_OverFlag:G1",32,0,0,',0,0,offset _VR_OverFlag,seg _VR_OverFlag,0x0d,0x0a
.CODE
.ram
.public _VR_OverFlag
_VR_OverFlag:
	.dw 0
.debug
	.dw '.stabs "VR_TimeFlag:G1",32,0,0,',0,0,offset _VR_TimeFlag,seg _VR_TimeFlag,0x0d,0x0a
.CODE
.ram
.public _VR_TimeFlag
_VR_TimeFlag:
	.dw 0
.debug
	.dw '.stabs "VR_TimeDeldy:G1",32,0,0,',0,0,offset _VR_TimeDeldy,seg _VR_TimeDeldy,0x0d,0x0a
.CODE
.ram
.public _VR_TimeDeldy
_VR_TimeDeldy:
	.dw 0
.debug
	.dw '.stabs "SleepCount:G1",32,0,0,',0,0,offset _SleepCount,seg _SleepCount,0x0d,0x0a
.CODE
.ram
.public _SleepCount
_SleepCount:
	.dw 0
.debug
	.dw '.stabs "Key:G4",32,0,0,',0,0,offset _Key,seg _Key,0x0d,0x0a
.CODE
.ram
.public _Key
_Key:
	.dw 0
.external _VR_Chase_Ball
.external _VR_Search_Color
.external _SP_Import
.external _SetAWBOFF
.external _Delay
.external _IntialToEagle3
.external _ResetEagle3
.external _Enable_1KHzAnd2HzInt
.external _SP_Init_IOB
.external _SP_Init_IOA
.external _SACM_A2000_Stop
.external _SACM_A2000_ServiceLoop
.external _SACM_A2000_Status
.external _SACM_A2000_Play
.external _SACM_A2000_Volume
.external _SACM_A2000_Initial
	.end

⌨️ 快捷键说明

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