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

📄 sound.asm

📁 电压表 电压表电压表电压表电压表电压表电压表
💻 ASM
字号:
// GCC for SUNPLUS u'nSP version 1.0.21-3
// Command: cc1 .\ccGmaaaa.i -fkeep-inline-functions -quiet -dumpbase Sound.c -mglobal-var-iram -gstabs -o .\Debug/Sound.asm
	.external __sn_func_ptr_sec

// gcc2_compiled.:

.debug
	.dw '.stabs "F:/Download/S480_Manual_C/",0x64,0,3,',0,0,offset Ltext0,seg Ltext0,0x0d,0x0a
.code
.debug
	.dw '.stabs "F:/Download/S480_Manual_C/Sound.c",0x64,0,3,',0,0,offset Ltext0,seg Ltext0,0x0d,0x0a
.code
.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 "PlaySnd:F19",36,0,0,',0,0,offset _PlaySnd,seg _PlaySnd,0x0d,0x0a
.CODE
.public _PlaySnd
_PlaySnd:	.proc
.debug
	.dw '.stabn 0x44,0,4,',0,0
	.dd LM1-_PlaySnd
	.dw 0x0d,0x0a
.code
LM1:
	// total=11, vars=11
	// frame_pointer_needed: 1
	push bp to [sp]
	sp-=11
	bp=sp+1

	R1=BP+14
	[bp+6]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,5,',0,0
	.dd LM2-_PlaySnd
	.dw 0x0d,0x0a
.code
LM2:
LBB2:
.debug
	.dw '.stabn 0x44,0,9,',0,0
	.dd LM3-_PlaySnd
	.dw 0x0d,0x0a
.code
LM3:
	R3=[bp+6]	// QImode move
	R2=[R3]	// QImode move
	R1=R2 lsl 1
	R2=R1	// QImode move
	R3=R2 lsl 1
	R1=R3	// QImode move
	R1=R1+_RES_Table
	R2=R1	// QImode move
	//split R3, [R2]
	R3=[R2++]	// QImode move
	R4=[R2--]	// QImode move
	//split [BP], R3
	[BP]=R3	// QImode move
	[bp+1]=R4	// QImode move
.debug
	.dw '.stabn 0x44,0,10,',0,0
	.dd LM4-_PlaySnd
	.dw 0x0d,0x0a
.code
LM4:
	R2=BP	// QImode move
	R1=BP+2
	R4=[bp+6]	// QImode move
	R3=[R4]	// QImode move
	R2=R3 lsl 1
	R3=R2	// QImode move
	R4=R3 lsl 1
	R2=R4	// QImode move
	R2=R2+_RES_Table+2
	R4=R2	// QImode move
	//split R3, [R4]
	R3=[R4++]	// QImode move
	R4=[R4--]	// QImode move
	//split [bp+8], R3
	[bp+8]=R3	// QImode move
	[bp+9]=R4	// QImode move
	//split R3, [bp+8]
	R3=[bp+8]	// QImode move
	R4=[bp+9]	// QImode move
	R2=R1	// QImode move
	//split [R2], R3
	[R2++]=R3	// QImode move
	[R2--]=R4	// QImode move
.debug
	.dw '.stabn 0x44,0,12,',0,0
	.dd LM5-_PlaySnd
	.dw 0x0d,0x0a
.code
LM5:
	R1=0	// QImode move
	[SP--]=R1	// QImode move
	call _SACM_S480_Initial	// call with return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,13,',0,0
	.dd LM6-_PlaySnd
	.dw 0x0d,0x0a
.code
LM6:
	call _SACM_S480_InitQueue	// call without return value
.debug
	.dw '.stabn 0x44,0,14,',0,0
	.dd LM7-_PlaySnd
	.dw 0x0d,0x0a
.code
LM7:
	R1=[bp+6]	// QImode move
	R3=[bp+6]	// QImode move
	R2=R3+1
	R4=R2	// QImode move
	R1=[R4]	// QImode move
	[SP--]=R1	// QImode move
	call _SACM_S480_InitDecoder	// call without return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,16,',0,0
	.dd LM8-_PlaySnd
	.dw 0x0d,0x0a
.code
LM8:
L3:
	pc=L5	// Indirect jump
	pc=L4	// Indirect jump
L5:
.debug
	.dw '.stabn 0x44,0,18,',0,0
	.dd LM9-_PlaySnd
	.dw 0x0d,0x0a
.code
LM9:
L6:
	call _SACM_S480_TestQueue	// call with return value
	CMP R1,1	// QImode compare
	NSJNZ L8	//QImode NE
	pc=L7	// Indirect jump
L8:
.debug
	.dw '.stabn 0x44,0,20,',0,0
	.dd LM10-_PlaySnd
	.dw 0x0d,0x0a
.code
LM10:
LBB3:
	R1=BP	// QImode move
	R1=BP+2
	[bp+10]=R1	// QImode move
	//split R3, [BP]
	R3=[BP]	// QImode move
	R4=[bp+1]	// QImode move
	//split [bp+8], R3
	[bp+8]=R3	// QImode move
	[bp+9]=R4	// QImode move
	R4=[bp+10]	// QImode move
	//split R1, [R4]
	R1=[R4++]	// QImode move
	R2=[R4--]	// QImode move
	//split R3, [bp+8]
	R3=[bp+8]	// QImode move
	R4=[bp+9]	// QImode move
	CMP R4,R2	// HImode 1st compare
	NSJB  L9	// HImode LTU
	JNZ L14
	CMP R3,R1
	NSJB L9
L14:
.debug
	.dw '.stabn 0x44,0,22,',0,0
	.dd LM11-_PlaySnd
	.dw 0x0d,0x0a
.code
LM11:
	pc=L7	// Indirect jump
L9:
.debug
	.dw '.stabn 0x44,0,24,',0,0
	.dd LM12-_PlaySnd
	.dw 0x0d,0x0a
.code
LM12:
	R1=BP	// QImode move
	R4=BP+4
	[bp+7]=R4	// QImode move
	//split R1, [BP]
	R1=[BP]	// QImode move
	R2=[bp+1]	// QImode move
	push R1,R2 to [sp]	// pushhi
	call _SP_GetResource	// call with return value
	SP = SP + 2	//SP
	R2=[bp+7]	// QImode move
	[R2]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,25,',0,0
	.dd LM13-_PlaySnd
	.dw 0x0d,0x0a
.code
LM13:
	R1=BP	// QImode move
	R2=BP+4
	R3=R2	// QImode move
	R1=[R3]	// QImode move
	[SP--]=R1	// QImode move
	call _SACM_S480_FillQueue	// call without return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,26,',0,0
	.dd LM14-_PlaySnd
	.dw 0x0d,0x0a
.code
LM14:
	//split R1, [BP]
	R1=[BP]	// QImode move
	R2=[bp+1]	// QImode move
	R3=R1+1	// HImode RD=RS+#IMM16
	R4=R2+0, Carry
	//split [BP], R3
	[BP]=R3	// QImode move
	[bp+1]=R4	// QImode move
.debug
	.dw '.stabn 0x44,0,27,',0,0
	.dd LM15-_PlaySnd
	.dw 0x0d,0x0a
.code
LM15:
LBE3:
	pc=L6	// Indirect jump
L7:
.debug
	.dw '.stabn 0x44,0,28,',0,0
	.dd LM16-_PlaySnd
	.dw 0x0d,0x0a
.code
LM16:
	call _SACM_S480_Status	// call with return value
	R2=R1&1
	CMP R2,0	// QImode test
	NSJZ L10	//QImode EQ
.debug
	.dw '.stabn 0x44,0,30,',0,0
	.dd LM17-_PlaySnd
	.dw 0x0d,0x0a
.code
LM17:
	call _SACM_S480_Decoder	// call without return value
.debug
	.dw '.stabn 0x44,0,31,',0,0
	.dd LM18-_PlaySnd
	.dw 0x0d,0x0a
.code
LM18:
	pc=L11	// Indirect jump
L10:
.debug
	.dw '.stabn 0x44,0,34,',0,0
	.dd LM19-_PlaySnd
	.dw 0x0d,0x0a
.code
LM19:
	call _SACM_S480_Stop	// call without return value
.debug
	.dw '.stabn 0x44,0,35,',0,0
	.dd LM20-_PlaySnd
	.dw 0x0d,0x0a
.code
LM20:
	pc=L4	// Indirect jump
L11:
.debug
	.dw '.stabn 0x44,0,37,',0,0
	.dd LM21-_PlaySnd
	.dw 0x0d,0x0a
.code
LM21:
	R1=1	// QImode move
	[28690]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,38,',0,0
	.dd LM22-_PlaySnd
	.dw 0x0d,0x0a
.code
LM22:
	pc=L3	// Indirect jump
L4:
.debug
	.dw '.stabn 0x44,0,39,',0,0
	.dd LM23-_PlaySnd
	.dw 0x0d,0x0a
.code
LM23:
LBE2:
.debug
	.dw '.stabn 0x44,0,39,',0,0
	.dd LM24-_PlaySnd
	.dw 0x0d,0x0a
.code
LM24:
L2:

	sp+=11
	pop bp from [sp]
	retf
	.endp	// end of PlaySnd

.debug
	.dw '.stabs "SndIndex:p1",160,0,0,14',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "DAC_Channel:p1",160,0,0,15',0x0d,0x0a
.CODE
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB2-_PlaySnd
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabs "Addr:5",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "EndAddr:5",128,0,0,2',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "Ret:4",128,0,0,4',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "Status:4",128,0,0,5',0x0d,0x0a
.CODE
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB3-_PlaySnd
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE3-_PlaySnd
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE2-_PlaySnd
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabf ',0,0
	.dd LME1-_PlaySnd
	.dw 0x0d,0x0a
.code
LME1:
.external _SACM_S480_Stop
.external _SACM_S480_Decoder
.external _SACM_S480_Status
.external _SACM_S480_FillQueue
.external _SP_GetResource
.external _SACM_S480_TestQueue
.external _SACM_S480_InitDecoder
.external _SACM_S480_InitQueue
.external _SACM_S480_Initial
.external _RES_Table
	.end

⌨️ 快捷键说明

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