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

📄 main.asm

📁 基于凌阳单片机的语音小车。可用于特定人的语音识别系统
💻 ASM
📖 第 1 页 / 共 5 页
字号:
// GCC for SUNPLUS u'nSP version 1.0.10
// Command: D:\PROGRA~1\Sunplus\UNSPID~1\IDE180\cc1.exe D:\DOCUME~1\刘新颜\LOCALS~1\Temp\cc6Jaaaa.i -fkeep-inline-functions -quiet -dumpbase main.c -gstabs -o .\Debug/main.asm
// gcc2_compiled.:

.stabs "F:\\功能扩展\\语音遥控车/", 0x64, 0, 3, Ltext0
.stabs "F:/功能扩展/语音遥控车/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
.debug
	.dw '.stabs "gActivated:G1",32,0,0,',0,0,offset _gActivated,seg _gActivated,0x0d,0x0a
.CODE
.public _gActivated
.iram
_gActivated:
	.dw 0
.debug
	.dw '.stabs "gTriggerRespond:G20=ar1;0;-1;1",32,0,0,',0,0,offset _gTriggerRespond,seg _gTriggerRespond,0x0d,0x0a
.CODE
.public _gTriggerRespond
.iram
_gTriggerRespond:
	.dw 9
	.dw 10
	.dw 9
.debug
	.dw '.stabs "gComm2Respond:G21=ar1;0;-1;1",32,0,0,',0,0,offset _gComm2Respond,seg _gComm2Respond,0x0d,0x0a
.CODE
.public _gComm2Respond
.iram
_gComm2Respond:
	.dw 11
	.dw 12
	.dw 13
.debug
	.dw '.stabs "PlayFlag:G1",32,0,0,',0,0,offset _PlayFlag,seg _PlayFlag,0x0d,0x0a
.CODE
.public _PlayFlag
.iram
_PlayFlag:
	.dw 0
.debug
	.dw '.stabs "uiSpeed:G4",32,0,0,',0,0,offset _uiSpeed,seg _uiSpeed,0x0d,0x0a
.CODE
.public _uiSpeed
.iram
_uiSpeed:
	.dw 0
.code
.debug
	.dw '.stabs "PlayRespond2:F19",36,0,0,',0,0,offset _PlayRespond2,seg _PlayRespond2,0x0d,0x0a
.CODE
.public _PlayRespond2
_PlayRespond2:	.proc
.debug
	.dw '.stabn 0x44,0,36,',0,0
	.dd LM1-_PlayRespond2
	.dw 0x0d,0x0a
.code
LM1:
	// 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,37,',0,0
	.dd LM2-_PlayRespond2
	.dw 0x0d,0x0a
.code
LM2:
LBB2:
	call _BSR_StopRecognizer	// call without return value
.debug
	.dw '.stabn 0x44,0,38,',0,0
	.dd LM3-_PlayRespond2
	.dw 0x0d,0x0a
.code
LM3:
	R1=1	// QImode move
	[SP--]=R1	// QImode move
	call _SACM_A2000_Initial	// call with return value
	SP=SP+1
.debug
	.dw '.stabn 0x44,0,39,',0,0
	.dd LM4-_PlayRespond2
	.dw 0x0d,0x0a
.code
LM4:
	R1=3	// QImode move
	[SP--]=R1	// QImode move
	R1=3	// QImode move
	[SP--]=R1	// QImode move
	R2=[BP]	// 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,40,',0,0
	.dd LM5-_PlayRespond2
	.dw 0x0d,0x0a
.code
LM5:
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,42,',0,0
	.dd LM6-_PlayRespond2
	.dw 0x0d,0x0a
.code
LM6:
LBB3:
	call _SACM_A2000_ServiceLoop	// call with return value
.debug
	.dw '.stabn 0x44,0,43,',0,0
	.dd LM7-_PlayRespond2
	.dw 0x0d,0x0a
.code
LM7:
	call _ClearWatchDog	// call without return value
.debug
	.dw '.stabn 0x44,0,44,',0,0
	.dd LM8-_PlayRespond2
	.dw 0x0d,0x0a
.code
LM8:
LBE3:
	pc=L3	// jump
L4:
.debug
	.dw '.stabn 0x44,0,45,',0,0
	.dd LM9-_PlayRespond2
	.dw 0x0d,0x0a
.code
LM9:
	call _SACM_A2000_Stop	// call with return value
.debug
	.dw '.stabn 0x44,0,46,',0,0
	.dd LM10-_PlayRespond2
	.dw 0x0d,0x0a
.code
LM10:
	R1=0	// QImode move
	[SP--]=R1	// QImode move
	call _BSR_InitRecognizer	// call with return value
	SP=SP+1
.debug
	.dw '.stabn 0x44,0,47,',0,0
	.dd LM11-_PlayRespond2
	.dw 0x0d,0x0a
.code
LM11:
	call _BSR_EnableCPUIndicator	// call without return value
.debug
	.dw '.stabn 0x44,0,48,',0,0
	.dd LM12-_PlayRespond2
	.dw 0x0d,0x0a
.code
LM12:
LBE2:
.debug
	.dw '.stabn 0x44,0,48,',0,0
	.dd LM13-_PlayRespond2
	.dw 0x0d,0x0a
.code
LM13:
L2:

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

.debug
	.dw '.stabs "Result:p1",160,0,0,4',0x0d,0x0a
.CODE
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB2-_PlayRespond2
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB3-_PlayRespond2
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE3-_PlayRespond2
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE2-_PlayRespond2
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabf ',0,0
	.dd LME1-_PlayRespond2
	.dw 0x0d,0x0a
.code
LME1:
.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,51,',0,0
	.dd LM14-_PlayRespond
	.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,52,',0,0
	.dd LM15-_PlayRespond
	.dw 0x0d,0x0a
.code
LM15:
LBB4:
	call _BSR_StopRecognizer	// call without return value
.debug
	.dw '.stabn 0x44,0,53,',0,0
	.dd LM16-_PlayRespond
	.dw 0x0d,0x0a
.code
LM16:
	R1=1	// QImode move
	[SP--]=R1	// QImode move
	call _SACM_S480_Initial	// call with return value
	SP=SP+1
.debug
	.dw '.stabn 0x44,0,54,',0,0
	.dd LM17-_PlayRespond
	.dw 0x0d,0x0a
.code
LM17:
	R1=3	// QImode move
	[SP--]=R1	// QImode move
	R1=3	// QImode move
	[SP--]=R1	// QImode move
	R2=[BP]	// QImode move
	R1=[R2]	// QImode move
	[SP--]=R1	// QImode move
	call _SACM_S480_Play	// call with return value
	SP=SP+3
.debug
	.dw '.stabn 0x44,0,55,',0,0
	.dd LM18-_PlayRespond
	.dw 0x0d,0x0a
.code
LM18:
L8:
	call _SACM_S480_Status	// call with return value
	R2=R1&1
	CMP R2,0	// QImode test
	JZ L11	// QImode NE
	PC=L10
L11:
	pc=L9	// jump
L10:
.debug
	.dw '.stabn 0x44,0,57,',0,0
	.dd LM19-_PlayRespond
	.dw 0x0d,0x0a
.code
LM19:
LBB5:
	call _SACM_S480_ServiceLoop	// call with return value
.debug
	.dw '.stabn 0x44,0,58,',0,0
	.dd LM20-_PlayRespond
	.dw 0x0d,0x0a
.code
LM20:
	call _ClearWatchDog	// call without return value
.debug
	.dw '.stabn 0x44,0,59,',0,0
	.dd LM21-_PlayRespond
	.dw 0x0d,0x0a
.code
LM21:
LBE5:
	pc=L8	// jump
L9:
.debug
	.dw '.stabn 0x44,0,60,',0,0
	.dd LM22-_PlayRespond
	.dw 0x0d,0x0a
.code
LM22:
	call _SACM_S480_Stop	// call with return value
.debug
	.dw '.stabn 0x44,0,61,',0,0
	.dd LM23-_PlayRespond
	.dw 0x0d,0x0a
.code
LM23:
	R1=0	// QImode move
	[SP--]=R1	// QImode move
	call _BSR_InitRecognizer	// call with return value
	SP=SP+1
.debug
	.dw '.stabn 0x44,0,62,',0,0
	.dd LM24-_PlayRespond
	.dw 0x0d,0x0a
.code
LM24:
	call _BSR_EnableCPUIndicator	// call without return value
.debug
	.dw '.stabn 0x44,0,63,',0,0
	.dd LM25-_PlayRespond
	.dw 0x0d,0x0a
.code
LM25:
LBE4:
.debug
	.dw '.stabn 0x44,0,63,',0,0
	.dd LM26-_PlayRespond
	.dw 0x0d,0x0a
.code
LM26:
L7:

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

.debug
	.dw '.stabs "Result:p1",160,0,0,4',0x0d,0x0a
.CODE
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB4-_PlayRespond
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB5-_PlayRespond
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE5-_PlayRespond
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE4-_PlayRespond
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabf ',0,0
	.dd LME2-_PlayRespond
	.dw 0x0d,0x0a
.code
LME2:
.code
.debug
	.dw '.stabs "TrainWord:F1",36,0,0,',0,0,offset _TrainWord,seg _TrainWord,0x0d,0x0a
.CODE
.public _TrainWord
_TrainWord:	.proc
.debug
	.dw '.stabn 0x44,0,66,',0,0
	.dd LM27-_TrainWord
	.dw 0x0d,0x0a
.code
LM27:
	// 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,67,',0,0
	.dd LM28-_TrainWord
	.dw 0x0d,0x0a
.code
LM28:
LBB6:
.debug
	.dw '.stabn 0x44,0,68,',0,0
	.dd LM29-_TrainWord
	.dw 0x0d,0x0a
.code
LM29:
	R1=[bp+1]	// QImode move
	R3=[bp+1]	// QImode move
	R2=R3+1
	R3=R2	// QImode move
	R1=[R3]	// QImode move
	[SP--]=R1	// QImode move
	call _PlayRespond	// call without return value
	SP=SP+1
.debug
	.dw '.stabn 0x44,0,69,',0,0
	.dd LM30-_TrainWord
	.dw 0x0d,0x0a
.code
LM30:
L13:
	pc=L15	// jump
	pc=L14	// jump
L15:
.debug
	.dw '.stabn 0x44,0,71,',0,0
	.dd LM31-_TrainWord
	.dw 0x0d,0x0a
.code
LM31:
	R1=0	// QImode move
	[SP--]=R1	// QImode move
	R2=[bp+1]	// QImode move
	R1=[R2]	// QImode move
	[SP--]=R1	// QImode move
	call _BSR_Train	// call with return value
	SP=SP+2
	[BP]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,73,',0,0
	.dd LM32-_TrainWord
	.dw 0x0d,0x0a
.code
LM32:
	R1=[BP]	// QImode move
	CMP R1,0	// QImode test
	JZ L28	// QImode NE
	PC=L16
L28:
	pc=L14	// jump
L16:
.debug
	.dw '.stabn 0x44,0,74,',0,0
	.dd LM33-_TrainWord
	.dw 0x0d,0x0a
.code
LM33:
	R2=[BP]	// QImode move
	R1=R2+6
	CMP R1,5	// QImode compare
	JNA L29	// QImode GTU
	PC=L17
L29:
	R2=R1	// QImode move
	R1=R2	// QImode move
	R1=R1+L26
	R3=R1	// QImode move
	R2=[R3]	// QImode move
	pc=R2	// tablejump
.text
L26:
	.dw L25
	.dw L22
	.dw L21
	.dw L20
	.dw L19
	.dw L18
.code
L18:
.debug
	.dw '.stabn 0x44,0,77,',0,0
	.dd LM34-_TrainWord
	.dw 0x0d,0x0a
.code
LM34:
	R1=5	// QImode move
	[SP--]=R1	// QImode move
	call _PlayRespond	// call without return value
	SP=SP+1
.debug
	.dw '.stabn 0x44,0,78,',0,0
	.dd LM35-_TrainWord
	.dw 0x0d,0x0a
.code
LM35:
	R1=(-1)	// QImode move
	pc=L12	// jump
L19:
.debug
	.dw '.stabn 0x44,0,80,',0,0
	.dd LM36-_TrainWord
	.dw 0x0d,0x0a
.code
LM36:
	R1=4	// QImode move
	[SP--]=R1	// QImode move
	call _PlayRespond	// call without return value
	SP=SP+1
.debug
	.dw '.stabn 0x44,0,81,',0,0
	.dd LM37-_TrainWord
	.dw 0x0d,0x0a
.code
LM37:
	pc=L17	// jump
L20:
.debug
	.dw '.stabn 0x44,0,83,',0,0
	.dd LM38-_TrainWord
	.dw 0x0d,0x0a
.code
LM38:
	R1=14	// QImode move
	[SP--]=R1	// QImode move
	call _PlayRespond	// call without return value
	SP=SP+1
.debug
	.dw '.stabn 0x44,0,84,',0,0
	.dd LM39-_TrainWord
	.dw 0x0d,0x0a
.code
LM39:
	R1=(-1)	// QImode move
	pc=L12	// jump
L21:
.debug
	.dw '.stabn 0x44,0,86,',0,0
	.dd LM40-_TrainWord
	.dw 0x0d,0x0a
.code
LM40:
	R1=(-1)	// QImode move
	pc=L12	// jump
L22:
.debug
	.dw '.stabn 0x44,0,88,',0,0
	.dd LM41-_TrainWord
	.dw 0x0d,0x0a
.code
LM41:
	R2=[bp+1]	// QImode move
	R1=[R2]	// QImode move
	CMP R1,256	// QImode compare
	JZ L30	// QImode NE
	PC=L23
L30:
	R1=5	// QImode move
	[SP--]=R1	// QImode move
	call _PlayRespond	// call without return value
	SP=SP+1
	pc=L24	// jump
L23:
.debug
	.dw '.stabn 0x44,0,89,',0,0
	.dd LM42-_TrainWord
	.dw 0x0d,0x0a
.code
LM42:
	R1=5	// QImode move
	[SP--]=R1	// QImode move
	call _PlayRespond	// call without return value
	SP=SP+1
L24:
.debug
	.dw '.stabn 0x44,0,90,',0,0
	.dd LM43-_TrainWord
	.dw 0x0d,0x0a
.code
LM43:
	R1=(-1)	// QImode move
	pc=L12	// jump
L25:
.debug
	.dw '.stabn 0x44,0,92,',0,0
	.dd LM44-_TrainWord
	.dw 0x0d,0x0a
.code
LM44:
	R1=(-1)	// QImode move
	pc=L12	// jump
L27:
L17:
.debug
	.dw '.stabn 0x44,0,94,',0,0
	.dd LM45-_TrainWord
	.dw 0x0d,0x0a
.code
LM45:
	pc=L13	// jump
L14:
.debug
	.dw '.stabn 0x44,0,95,',0,0
	.dd LM46-_TrainWord
	.dw 0x0d,0x0a
.code
LM46:
	R1=0	// QImode move
	pc=L12	// jump
.debug
	.dw '.stabn 0x44,0,96,',0,0
	.dd LM47-_TrainWord
	.dw 0x0d,0x0a
.code
LM47:
LBE6:
.debug
	.dw '.stabn 0x44,0,96,',0,0
	.dd LM48-_TrainWord
	.dw 0x0d,0x0a
.code
LM48:
L12:

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

.debug
	.dw '.stabs "WordID:p1",160,0,0,5',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "RespondID:p1",160,0,0,6',0x0d,0x0a
.CODE
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB6-_TrainWord
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabs "res:1",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE6-_TrainWord
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabf ',0,0
	.dd LME3-_TrainWord
	.dw 0x0d,0x0a
.code
LME3:
.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,99,',0,0

⌨️ 快捷键说明

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