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

📄 main.asm

📁 用凌阳SPCE061A单片机做成的数字语音电压表的源程序
💻 ASM
📖 第 1 页 / 共 2 页
字号:
// GCC for SUNPLUS u'nSP version 1.0.10-10
// Command: C:\PROGRA~1\Sunplus\UNSPID~1\unSPIDE\cc1.exe C:\DOCUME~1\a\LOCALS~1\Temp\ccwfaaaa.i -quiet -dumpbase main.c -gstabs -o .\Debug/main.asm
// gcc2_compiled.:

.stabs "D:\\My_Progect\\VoiceV/", 0x64, 0, 3, Ltext0
.stabs "D:/My_Progect/VoiceV/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,15,',0,0
	.dd LM1-_PlayRespond
	.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,16,',0,0
	.dd LM2-_PlayRespond
	.dw 0x0d,0x0a
.code
LM2:
LBB2:
	R1=1	// QImode move
	[SP--]=R1	// QImode move
	call _SACM_A2000_Initial	// call with return value
	SP=SP+1
.debug
	.dw '.stabn 0x44,0,17,',0,0
	.dd LM3-_PlayRespond
	.dw 0x0d,0x0a
.code
LM3:
	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,18,',0,0
	.dd LM4-_PlayRespond
	.dw 0x0d,0x0a
.code
LM4:
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	// Indirect jump
L5:
.debug
	.dw '.stabn 0x44,0,20,',0,0
	.dd LM5-_PlayRespond
	.dw 0x0d,0x0a
.code
LM5:
LBB3:
	call _SACM_A2000_ServiceLoop	// call with return value
.debug
	.dw '.stabn 0x44,0,21,',0,0
	.dd LM6-_PlayRespond
	.dw 0x0d,0x0a
.code
LM6:
LBE3:
	pc=L3	// Indirect jump
L4:
.debug
	.dw '.stabn 0x44,0,22,',0,0
	.dd LM7-_PlayRespond
	.dw 0x0d,0x0a
.code
LM7:
LBE2:
.debug
	.dw '.stabn 0x44,0,22,',0,0
	.dd LM8-_PlayRespond
	.dw 0x0d,0x0a
.code
LM8:
L2:

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

.debug
	.dw '.stabs "Speech_Table_Id:p1",160,0,0,4',0x0d,0x0a
.CODE
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB2-_PlayRespond
	.dw 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 "PlayResult:F19",36,0,0,',0,0,offset _PlayResult,seg _PlayResult,0x0d,0x0a
.CODE
.public _PlayResult
_PlayResult:	.proc
.debug
	.dw '.stabn 0x44,0,24,',0,0
	.dd LM9-_PlayResult
	.dw 0x0d,0x0a
.code
LM9:
	// 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,25,',0,0
	.dd LM10-_PlayResult
	.dw 0x0d,0x0a
.code
LM10:
LBB4:
.debug
	.dw '.stabn 0x44,0,26,',0,0
	.dd LM11-_PlayResult
	.dw 0x0d,0x0a
.code
LM11:
	R3=[bp+1]	// QImode move
	R1=[R3++]	// RD=[RS] HFmode, RD!=RS
	R2=[R3--]
	push R1,R2 to [sp]	// pushhf
	call __cvf2i1	// call with return value
	SP=SP+2
	[BP]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,27,',0,0
	.dd LM12-_PlayResult
	.dw 0x0d,0x0a
.code
LM12:
	R1=[BP]	// QImode move
	[SP--]=R1	// QImode move
	call _PlayRespond	// call without return value
	SP=SP+1
.debug
	.dw '.stabn 0x44,0,28,',0,0
	.dd LM13-_PlayResult
	.dw 0x0d,0x0a
.code
LM13:
	R1=11	// QImode move
	[SP--]=R1	// QImode move
	call _PlayRespond	// call without return value
	SP=SP+1
.debug
	.dw '.stabn 0x44,0,29,',0,0
	.dd LM14-_PlayResult
	.dw 0x0d,0x0a
.code
LM14:
	R3=[bp+1]	// QImode move
	R1=[R3++]	// RD=[RS] HFmode, RD!=RS
	R2=[R3--]
	R3=0	// HFmode immediate to register move
	R4=16672
	push R3,R4 to [sp]	// pushhf
	push R1,R2 to [sp]	// pushhf
	call __mulf2	// call with return value
	SP=SP+4
	push R1,R2 to [sp]	// pushhf
	call __cvf2i1	// call with return value
	SP=SP+2
	[BP]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,30,',0,0
	.dd LM15-_PlayResult
	.dw 0x0d,0x0a
.code
LM15:
	R1=[BP]	// QImode move
	R2=10	// QImode move
	[SP--]=R2	// QImode move
	[SP--]=R1	// QImode move
	call __modu1	// call with return value
	SP=SP+2
	[SP--]=R1	// QImode move
	call _PlayRespond	// call without return value
	SP=SP+1
.debug
	.dw '.stabn 0x44,0,31,',0,0
	.dd LM16-_PlayResult
	.dw 0x0d,0x0a
.code
LM16:
	R3=[bp+1]	// QImode move
	R1=[R3++]	// RD=[RS] HFmode, RD!=RS
	R2=[R3--]
	R3=0	// HFmode immediate to register move
	R4=17096
	push R3,R4 to [sp]	// pushhf
	push R1,R2 to [sp]	// pushhf
	call __mulf2	// call with return value
	SP=SP+4
	push R1,R2 to [sp]	// pushhf
	call __cvf2i1	// call with return value
	SP=SP+2
	[BP]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,32,',0,0
	.dd LM17-_PlayResult
	.dw 0x0d,0x0a
.code
LM17:
	R1=[BP]	// QImode move
	R2=10	// QImode move
	[SP--]=R2	// QImode move
	[SP--]=R1	// QImode move
	call __modu1	// call with return value
	SP=SP+2
	[SP--]=R1	// QImode move
	call _PlayRespond	// call without return value
	SP=SP+1
.debug
	.dw '.stabn 0x44,0,33,',0,0
	.dd LM18-_PlayResult
	.dw 0x0d,0x0a
.code
LM18:
	R3=[bp+1]	// QImode move
	R1=[R3++]	// RD=[RS] HFmode, RD!=RS
	R2=[R3--]
	R3=0	// HFmode immediate to register move
	R4=17530
	push R3,R4 to [sp]	// pushhf
	push R1,R2 to [sp]	// pushhf
	call __mulf2	// call with return value
	SP=SP+4
	push R1,R2 to [sp]	// pushhf
	call __cvf2i1	// call with return value
	SP=SP+2
	[BP]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,34,',0,0
	.dd LM19-_PlayResult
	.dw 0x0d,0x0a
.code
LM19:
	R1=[BP]	// QImode move
	R2=10	// QImode move
	[SP--]=R2	// QImode move
	[SP--]=R1	// QImode move
	call __modu1	// call with return value
	SP=SP+2
	[SP--]=R1	// QImode move
	call _PlayRespond	// call without return value
	SP=SP+1
.debug
	.dw '.stabn 0x44,0,35,',0,0
	.dd LM20-_PlayResult
	.dw 0x0d,0x0a
.code
LM20:
	R3=[bp+1]	// QImode move
	R1=[R3++]	// RD=[RS] HFmode, RD!=RS
	R2=[R3--]
	R3=16384	// HFmode immediate to register move
	R4=17948
	push R3,R4 to [sp]	// pushhf
	push R1,R2 to [sp]	// pushhf
	call __mulf2	// call with return value
	SP=SP+4
	push R1,R2 to [sp]	// pushhf
	call __cvf2i1	// call with return value
	SP=SP+2
	[BP]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,36,',0,0
	.dd LM21-_PlayResult
	.dw 0x0d,0x0a
.code
LM21:
	R1=[BP]	// QImode move
	R2=10	// QImode move
	[SP--]=R2	// QImode move
	[SP--]=R1	// QImode move
	call __modu1	// call with return value
	SP=SP+2
	[SP--]=R1	// QImode move
	call _PlayRespond	// call without return value
	SP=SP+1
.debug
	.dw '.stabn 0x44,0,37,',0,0
	.dd LM22-_PlayResult
	.dw 0x0d,0x0a
.code
LM22:
LBE4:
.debug
	.dw '.stabn 0x44,0,37,',0,0
	.dd LM23-_PlayResult
	.dw 0x0d,0x0a
.code
LM23:
L7:

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

.debug
	.dw '.stabs "Result:p12",160,0,0,5',0x0d,0x0a
.CODE
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB4-_PlayResult
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabs "temp:4",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE4-_PlayResult
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabf ',0,0
	.dd LME2-_PlayResult
	.dw 0x0d,0x0a
.code
LME2:
.code
.debug
	.dw '.stabs "Get_ADC_Var:F4",36,0,0,',0,0,offset _Get_ADC_Var,seg _Get_ADC_Var,0x0d,0x0a
.CODE
.public _Get_ADC_Var

⌨️ 快捷键说明

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