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

📄 playsnd.asm

📁 此程序为出租车计价器
💻 ASM
字号:
// GCC for SUNPLUS u'nSP version 1.0.10-10
// Command: C:\PROGRA~1\Sunplus\UNSPID~1\unSPIDE\cc1.exe C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\cc0saaaa.i -quiet -dumpbase PlaySnd.c -gstabs -Wall -o .\Debug/PlaySnd.asm
// gcc2_compiled.:

.stabs "D:\\凌阳\\毕业设计2006-1-4\\毕业设计大礼包更新20050606\\出租车计价器礼包\\参考源代码\\Taxi\\Taxi/", 0x64, 0, 3, Ltext0
.stabs "D:/羂\350裓\364/盶\317襖\265蒤\350糪\3062006-1-4/盶\317襖\265蒤\350糪\306碶\363繺\361癨\374竆\374衆\30220050606/砛\366譢\342砛\265糪\306糪\333芢\367繺\361癨\374/瞈\316縗\274診\264碶\372耚\353/Taxi/Taxi/PlaySnd.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 "SetPlayService:F19",36,0,0,',0,0,offset _SetPlayService,seg _SetPlayService,0x0d,0x0a
.CODE
.public _SetPlayService
_SetPlayService:	.proc
.debug
	.dw '.stabn 0x44,0,17,',0,0
	.dd LM1-_SetPlayService
	.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,18,',0,0
	.dd LM2-_SetPlayService
	.dw 0x0d,0x0a
.code
LM2:
	R1=64	// QImode move
	[28689]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,19,',0,0
	.dd LM3-_SetPlayService
	.dw 0x0d,0x0a
.code
LM3:
	R1=64	// QImode move
	[SP--]=R1	// QImode move
	call _SetINTStatus	// call without return value
	SP=SP+1
.debug
	.dw '.stabn 0x44,0,20,',0,0
	.dd LM4-_SetPlayService
	.dw 0x0d,0x0a
.code
LM4:
.debug
	.dw '.stabn 0x44,0,20,',0,0
	.dd LM5-_SetPlayService
	.dw 0x0d,0x0a
.code
LM5:
L2:

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

.debug
	.dw '.stabf ',0,0
	.dd LME1-_SetPlayService
	.dw 0x0d,0x0a
.code
LME1:
.code
.debug
	.dw '.stabs "ClearPlayService:F19",36,0,0,',0,0,offset _ClearPlayService,seg _ClearPlayService,0x0d,0x0a
.CODE
.public _ClearPlayService
_ClearPlayService:	.proc
.debug
	.dw '.stabn 0x44,0,29,',0,0
	.dd LM6-_ClearPlayService
	.dw 0x0d,0x0a
.code
LM6:
	// 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,30,',0,0
	.dd LM7-_ClearPlayService
	.dw 0x0d,0x0a
.code
LM7:
	R1=64	// QImode move
	[28689]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,31,',0,0
	.dd LM8-_ClearPlayService
	.dw 0x0d,0x0a
.code
LM8:
	R1=64	// QImode move
	[SP--]=R1	// QImode move
	call _ClearINTStatus	// call without return value
	SP=SP+1
.debug
	.dw '.stabn 0x44,0,32,',0,0
	.dd LM9-_ClearPlayService
	.dw 0x0d,0x0a
.code
LM9:
.debug
	.dw '.stabn 0x44,0,32,',0,0
	.dd LM10-_ClearPlayService
	.dw 0x0d,0x0a
.code
LM10:
L3:

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

.debug
	.dw '.stabf ',0,0
	.dd LME2-_ClearPlayService
	.dw 0x0d,0x0a
.code
LME2:
.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,45,',0,0
	.dd LM11-_PlaySnd
	.dw 0x0d,0x0a
.code
LM11:
	// 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,46,',0,0
	.dd LM12-_PlaySnd
	.dw 0x0d,0x0a
.code
LM12:
	R1=[BP]	// QImode move
	R1=[BP]	// QImode move
	R2=R1+1
	R1=R2	// QImode move
	R3=[R1]	// QImode move
	R1=R3&2
	CMP R1,0	// QImode test
	JNZ L13	// QImode EQ
	PC=L5
L13:
.debug
	.dw '.stabn 0x44,0,48,',0,0
	.dd LM13-_PlaySnd
	.dw 0x0d,0x0a
.code
LM13:
L6:
	R1=[_g_PlayStatus]	// QImode move
	CMP R1,0	// QImode test
	JZ L14	// QImode NE
	PC=L8
L14:
	pc=L5	// Indirect jump
L8:
	pc=L6	// Indirect jump
L7:
L5:
.debug
	.dw '.stabn 0x44,0,50,',0,0
	.dd LM14-_PlaySnd
	.dw 0x0d,0x0a
.code
LM14:
	call _ClearPlayService	// call without return value
.debug
	.dw '.stabn 0x44,0,51,',0,0
	.dd LM15-_PlaySnd
	.dw 0x0d,0x0a
.code
LM15:
	call _SACM_S480_Stop	// call without return value
.debug
	.dw '.stabn 0x44,0,52,',0,0
	.dd LM16-_PlaySnd
	.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,53,',0,0
	.dd LM17-_PlaySnd
	.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 without return value
	SP=SP+3
.debug
	.dw '.stabn 0x44,0,54,',0,0
	.dd LM18-_PlaySnd
	.dw 0x0d,0x0a
.code
LM18:
	R1=1	// QImode move
	[_g_PlayStatus]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,55,',0,0
	.dd LM19-_PlaySnd
	.dw 0x0d,0x0a
.code
LM19:
	call _SetPlayService	// call without return value
.debug
	.dw '.stabn 0x44,0,56,',0,0
	.dd LM20-_PlaySnd
	.dw 0x0d,0x0a
.code
LM20:
	R1=[BP]	// QImode move
	R1=[BP]	// QImode move
	R2=R1+1
	R1=R2	// QImode move
	R3=[R1]	// QImode move
	R1=R3&1
	CMP R1,0	// QImode test
	JNZ L15	// QImode EQ
	PC=L9
L15:
.debug
	.dw '.stabn 0x44,0,58,',0,0
	.dd LM21-_PlaySnd
	.dw 0x0d,0x0a
.code
LM21:
L10:
	R1=[_g_PlayStatus]	// QImode move
	CMP R1,0	// QImode test
	JZ L16	// QImode NE
	PC=L12
L16:
	pc=L11	// Indirect jump
L12:
	pc=L10	// Indirect jump
L11:
.debug
	.dw '.stabn 0x44,0,59,',0,0
	.dd LM22-_PlaySnd
	.dw 0x0d,0x0a
.code
LM22:
	call _ClearPlayService	// call without return value
L9:
.debug
	.dw '.stabn 0x44,0,61,',0,0
	.dd LM23-_PlaySnd
	.dw 0x0d,0x0a
.code
LM23:
.debug
	.dw '.stabn 0x44,0,61,',0,0
	.dd LM24-_PlaySnd
	.dw 0x0d,0x0a
.code
LM24:
L4:

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

.debug
	.dw '.stabs "SndIndex:p4",160,0,0,4',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "WaitMode:p4",160,0,0,5',0x0d,0x0a
.CODE
.debug
	.dw '.stabf ',0,0
	.dd LME3-_PlaySnd
	.dw 0x0d,0x0a
.code
LME3:
.code
.debug
	.dw '.stabs "SetPlayStatus:F19",36,0,0,',0,0,offset _SetPlayStatus,seg _SetPlayStatus,0x0d,0x0a
.CODE
.public _SetPlayStatus
_SetPlayStatus:	.proc
.debug
	.dw '.stabn 0x44,0,72,',0,0
	.dd LM25-_SetPlayStatus
	.dw 0x0d,0x0a
.code
LM25:
	// total=0, vars=0
	// frame_pointer_needed: 1
	push bp to [sp]
	bp=sp+1

	R1=BP+3
.debug
	.dw '.stabn 0x44,0,73,',0,0
	.dd LM26-_SetPlayStatus
	.dw 0x0d,0x0a
.code
LM26:
	R3=R1	// QImode move
	R2=[R3]	// QImode move
	[_g_PlayStatus]=R2	// QImode move
.debug
	.dw '.stabn 0x44,0,74,',0,0
	.dd LM27-_SetPlayStatus
	.dw 0x0d,0x0a
.code
LM27:
.debug
	.dw '.stabn 0x44,0,74,',0,0
	.dd LM28-_SetPlayStatus
	.dw 0x0d,0x0a
.code
LM28:
L17:

	pop bp from [sp]
	retf
	.endp	// end of SetPlayStatus

.debug
	.dw '.stabs "Status:p4",160,0,0,3',0x0d,0x0a
.CODE
.debug
	.dw '.stabf ',0,0
	.dd LME4-_SetPlayStatus
	.dw 0x0d,0x0a
.code
LME4:
.code
.debug
	.dw '.stabs "GetPlayStatus:F4",36,0,0,',0,0,offset _GetPlayStatus,seg _GetPlayStatus,0x0d,0x0a
.CODE
.public _GetPlayStatus
_GetPlayStatus:	.proc
.debug
	.dw '.stabn 0x44,0,84,',0,0
	.dd LM29-_GetPlayStatus
	.dw 0x0d,0x0a
.code
LM29:
	// total=0, vars=0
	// frame_pointer_needed: 1
	push bp to [sp]
	bp=sp+1

	R2=BP+3
.debug
	.dw '.stabn 0x44,0,85,',0,0
	.dd LM30-_GetPlayStatus
	.dw 0x0d,0x0a
.code
LM30:
	R3=[_g_PlayStatus]	// QImode move
	R1=R3	// QImode move
	pc=L18	// Indirect jump
.debug
	.dw '.stabn 0x44,0,86,',0,0
	.dd LM31-_GetPlayStatus
	.dw 0x0d,0x0a
.code
LM31:
.debug
	.dw '.stabn 0x44,0,86,',0,0
	.dd LM32-_GetPlayStatus
	.dw 0x0d,0x0a
.code
LM32:
L18:

	pop bp from [sp]
	retf
	.endp	// end of GetPlayStatus

.debug
	.dw '.stabf ',0,0
	.dd LME5-_GetPlayStatus
	.dw 0x0d,0x0a
.code
LME5:
.code
.debug
	.dw '.stabs "IRQ_PlayService:F19",36,0,0,',0,0,offset _IRQ_PlayService,seg _IRQ_PlayService,0x0d,0x0a
.CODE
.public _IRQ_PlayService
_IRQ_PlayService:	.proc
.debug
	.dw '.stabn 0x44,0,95,',0,0
	.dd LM33-_IRQ_PlayService
	.dw 0x0d,0x0a
.code
LM33:
	// 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,96,',0,0
	.dd LM34-_IRQ_PlayService
	.dw 0x0d,0x0a
.code
LM34:
	R1=[_g_PlayStatus]	// QImode move
	CMP R1,1	// QImode compare
	JZ L23	// QImode NE
	PC=L20
L23:
.debug
	.dw '.stabn 0x44,0,98,',0,0
	.dd LM35-_IRQ_PlayService
	.dw 0x0d,0x0a
.code
LM35:
	call _SACM_S480_Status	// call with return value
	R2=R1&1
	CMP R2,0	// QImode test
	JNZ L24	// QImode EQ
	PC=L21
L24:
.debug
	.dw '.stabn 0x44,0,100,',0,0
	.dd LM36-_IRQ_PlayService
	.dw 0x0d,0x0a
.code
LM36:
	call _SACM_S480_ServiceLoop	// call without return value
.debug
	.dw '.stabn 0x44,0,101,',0,0
	.dd LM37-_IRQ_PlayService
	.dw 0x0d,0x0a
.code
LM37:
	pc=L20	// Indirect jump
L21:
.debug
	.dw '.stabn 0x44,0,104,',0,0
	.dd LM38-_IRQ_PlayService
	.dw 0x0d,0x0a
.code
LM38:
	R1=0	// QImode move
	[_g_PlayStatus]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,105,',0,0
	.dd LM39-_IRQ_PlayService
	.dw 0x0d,0x0a
.code
LM39:
	call _SACM_S480_Stop	// call without return value
.debug
	.dw '.stabn 0x44,0,106,',0,0
	.dd LM40-_IRQ_PlayService
	.dw 0x0d,0x0a
.code
LM40:
	call _ClearPlayService	// call without return value
L22:
L20:
.debug
	.dw '.stabn 0x44,0,109,',0,0
	.dd LM41-_IRQ_PlayService
	.dw 0x0d,0x0a
.code
LM41:
.debug
	.dw '.stabn 0x44,0,109,',0,0
	.dd LM42-_IRQ_PlayService
	.dw 0x0d,0x0a
.code
LM42:
L19:

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

.debug
	.dw '.stabf ',0,0
	.dd LME6-_IRQ_PlayService
	.dw 0x0d,0x0a
.code
LME6:
.debug
	.dw '.stabs "g_PlayStatus:G4",32,0,0,',0,0,offset _g_PlayStatus,seg _g_PlayStatus,0x0d,0x0a
.CODE
.ram
.public _g_PlayStatus
_g_PlayStatus:
	.dw 0
.external _SACM_S480_ServiceLoop
.external _SACM_S480_Status
.external _SACM_S480_Play
.external _SACM_S480_Initial
.external _SACM_S480_Stop
.external _ClearINTStatus
.external _SetINTStatus
	.end

⌨️ 快捷键说明

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