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

📄 cost.asm

📁 此程序为出租车计价器
💻 ASM
📖 第 1 页 / 共 4 页
字号:
// 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\ccwBaaaa.i -quiet -dumpbase Cost.c -gstabs -Wall -o .\Debug/Cost.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/Cost.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 "_DATE:T20=s6Year:4,0,16;Month:4,16,16;\\",128,0,0,0',0x0d,0x0a
	.DW '.stabs "Day:4,32,16;Hour:4,48,16;Minute:4,64,16;\\",128,0,0,0',0x0d,0x0a
	.DW '.stabs "Second:4,80,16;;",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "Date:t21=20",128,0,0,0',0x0d,0x0a
.CODE
.code
.debug
	.dw '.stabs "Cost_Init:F19",36,0,0,',0,0,offset _Cost_Init,seg _Cost_Init,0x0d,0x0a
.CODE
.public _Cost_Init
_Cost_Init:	.proc
.debug
	.dw '.stabn 0x44,0,46,',0,0
	.dd LM1-_Cost_Init
	.dw 0x0d,0x0a
.code
LM1:
	// total=0, vars=0
	// frame_pointer_needed: 1
	push bp to [sp]
	bp=sp+1

	R1=BP+3
.debug
	.dw '.stabn 0x44,0,47,',0,0
	.dd LM2-_Cost_Init
	.dw 0x0d,0x0a
.code
LM2:
	R3=[_C_StartPrice]	// HFmode RD=[Label]
	R4=[_C_StartPrice+1]
	[_c_fStartPrice]=R3	// HFmode [Label]=RS
	[_c_fStartPrice+1]=R4
.debug
	.dw '.stabn 0x44,0,48,',0,0
	.dd LM3-_Cost_Init
	.dw 0x0d,0x0a
.code
LM3:
	R3=[_C_NightStartPrice]	// HFmode RD=[Label]
	R4=[_C_NightStartPrice+1]
	[_c_fNightStartPrice]=R3	// HFmode [Label]=RS
	[_c_fNightStartPrice+1]=R4
.debug
	.dw '.stabn 0x44,0,49,',0,0
	.dd LM4-_Cost_Init
	.dw 0x0d,0x0a
.code
LM4:
	R3=[_C_StartMilege]	// HFmode RD=[Label]
	R4=[_C_StartMilege+1]
	[_c_fStartMilege]=R3	// HFmode [Label]=RS
	[_c_fStartMilege+1]=R4
.debug
	.dw '.stabn 0x44,0,50,',0,0
	.dd LM5-_Cost_Init
	.dw 0x0d,0x0a
.code
LM5:
	R3=[_C_PricePerKM]	// HFmode RD=[Label]
	R4=[_C_PricePerKM+1]
	[_c_fPricePerKM]=R3	// HFmode [Label]=RS
	[_c_fPricePerKM+1]=R4
.debug
	.dw '.stabn 0x44,0,51,',0,0
	.dd LM6-_Cost_Init
	.dw 0x0d,0x0a
.code
LM6:
	R3=[_C_NightPricePerKM]	// HFmode RD=[Label]
	R4=[_C_NightPricePerKM+1]
	[_c_fNightPricePerKM]=R3	// HFmode [Label]=RS
	[_c_fNightPricePerKM+1]=R4
.debug
	.dw '.stabn 0x44,0,52,',0,0
	.dd LM7-_Cost_Init
	.dw 0x0d,0x0a
.code
LM7:
	R3=[_C_WaitSpeed1]	// HFmode RD=[Label]
	R4=[_C_WaitSpeed1+1]
	[_c_fWaitSpeed1]=R3	// HFmode [Label]=RS
	[_c_fWaitSpeed1+1]=R4
.debug
	.dw '.stabn 0x44,0,53,',0,0
	.dd LM8-_Cost_Init
	.dw 0x0d,0x0a
.code
LM8:
	R3=[_C_WaitSpeed2]	// HFmode RD=[Label]
	R4=[_C_WaitSpeed2+1]
	[_c_fWaitSpeed2]=R3	// HFmode [Label]=RS
	[_c_fWaitSpeed2+1]=R4
.debug
	.dw '.stabn 0x44,0,54,',0,0
	.dd LM9-_Cost_Init
	.dw 0x0d,0x0a
.code
LM9:
	R3=[_C_FirstWaitTimeLimit]	// HFmode RD=[Label]
	R4=[_C_FirstWaitTimeLimit+1]
	[_c_fFirstWaitTimeLimit]=R3	// HFmode [Label]=RS
	[_c_fFirstWaitTimeLimit+1]=R4
.debug
	.dw '.stabn 0x44,0,55,',0,0
	.dd LM10-_Cost_Init
	.dw 0x0d,0x0a
.code
LM10:
	R3=[_C_WaitTimeLimit]	// HFmode RD=[Label]
	R4=[_C_WaitTimeLimit+1]
	[_c_fWaitTimeLimit]=R3	// HFmode [Label]=RS
	[_c_fWaitTimeLimit+1]=R4
.debug
	.dw '.stabn 0x44,0,56,',0,0
	.dd LM11-_Cost_Init
	.dw 0x0d,0x0a
.code
LM11:
	R3=[_C_WaitPrice]	// HFmode RD=[Label]
	R4=[_C_WaitPrice+1]
	[_c_fWaitPrice]=R3	// HFmode [Label]=RS
	[_c_fWaitPrice+1]=R4
.debug
	.dw '.stabn 0x44,0,57,',0,0
	.dd LM12-_Cost_Init
	.dw 0x0d,0x0a
.code
LM12:
	R3=[_C_LongWayLimit]	// HFmode RD=[Label]
	R4=[_C_LongWayLimit+1]
	[_c_fLongWayLimit]=R3	// HFmode [Label]=RS
	[_c_fLongWayLimit+1]=R4
.debug
	.dw '.stabn 0x44,0,58,',0,0
	.dd LM13-_Cost_Init
	.dw 0x0d,0x0a
.code
LM13:
	R3=[_C_LongWayPrice]	// HFmode RD=[Label]
	R4=[_C_LongWayPrice+1]
	[_c_fLongWayPrice]=R3	// HFmode [Label]=RS
	[_c_fLongWayPrice+1]=R4
.debug
	.dw '.stabn 0x44,0,59,',0,0
	.dd LM14-_Cost_Init
	.dw 0x0d,0x0a
.code
LM14:
	R2=[_C_NightTime1]	// QImode move
	[_c_uiNightTime1]=R2	// QImode move
.debug
	.dw '.stabn 0x44,0,60,',0,0
	.dd LM15-_Cost_Init
	.dw 0x0d,0x0a
.code
LM15:
	R2=[_C_NightTime2]	// QImode move
	[_c_uiNightTime2]=R2	// QImode move
.debug
	.dw '.stabn 0x44,0,61,',0,0
	.dd LM16-_Cost_Init
	.dw 0x0d,0x0a
.code
LM16:
	R2=[_c_uiNightTime1]	// QImode move
	CMP R2,[_c_uiNightTime2]	// QImode compare
	JB L4	// QImode GEU
	PC=L3
L4:
.debug
	.dw '.stabn 0x44,0,63,',0,0
	.dd LM17-_Cost_Init
	.dw 0x0d,0x0a
.code
LM17:
	R2=[_C_NightTime2]	// QImode move
	[_c_uiNightTime1]=R2	// QImode move
.debug
	.dw '.stabn 0x44,0,64,',0,0
	.dd LM18-_Cost_Init
	.dw 0x0d,0x0a
.code
LM18:
	R2=[_C_NightTime1]	// QImode move
	[_c_uiNightTime2]=R2	// QImode move
L3:
.debug
	.dw '.stabn 0x44,0,73,',0,0
	.dd LM19-_Cost_Init
	.dw 0x0d,0x0a
.code
LM19:
.debug
	.dw '.stabn 0x44,0,73,',0,0
	.dd LM20-_Cost_Init
	.dw 0x0d,0x0a
.code
LM20:
L2:

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

.debug
	.dw '.stabf ',0,0
	.dd LME1-_Cost_Init
	.dw 0x0d,0x0a
.code
LME1:
.code
.debug
	.dw '.stabs "Cost_StartRunning:F19",36,0,0,',0,0,offset _Cost_StartRunning,seg _Cost_StartRunning,0x0d,0x0a
.CODE
.public _Cost_StartRunning
_Cost_StartRunning:	.proc
.debug
	.dw '.stabn 0x44,0,82,',0,0
	.dd LM21-_Cost_StartRunning
	.dw 0x0d,0x0a
.code
LM21:
	// 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,83,',0,0
	.dd LM22-_Cost_StartRunning
	.dw 0x0d,0x0a
.code
LM22:
	R1=0	// HFmode immediate to register move
	R2=0
	[_fCost]=R1	// HFmode [Label]=RS
	[_fCost+1]=R2
.debug
	.dw '.stabn 0x44,0,84,',0,0
	.dd LM23-_Cost_StartRunning
	.dw 0x0d,0x0a
.code
LM23:
	R1=0	// HFmode immediate to register move
	R2=0
	[_fRevMilegePoint]=R1	// HFmode [Label]=RS
	[_fRevMilegePoint+1]=R2
.debug
	.dw '.stabn 0x44,0,85,',0,0
	.dd LM24-_Cost_StartRunning
	.dw 0x0d,0x0a
.code
LM24:
	R1=0	// HImode immediate to register move
	R2=0
	[_ulWaitTime]=R1	// HImode [Label]=RS
	[_ulWaitTime+1]=R2
.debug
	.dw '.stabn 0x44,0,86,',0,0
	.dd LM25-_Cost_StartRunning
	.dw 0x0d,0x0a
.code
LM25:
	R1=0	// QImode move
	[_uiWaiting]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,87,',0,0
	.dd LM26-_Cost_StartRunning
	.dw 0x0d,0x0a
.code
LM26:
	R1=0	// QImode move
	[_uiLongWay]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,88,',0,0
	.dd LM27-_Cost_StartRunning
	.dw 0x0d,0x0a
.code
LM27:
	call _Speed_Start	// call without return value
.debug
	.dw '.stabn 0x44,0,89,',0,0
	.dd LM28-_Cost_StartRunning
	.dw 0x0d,0x0a
.code
LM28:
	call _Dis_StartMessure	// call without return value
.debug
	.dw '.stabn 0x44,0,90,',0,0
	.dd LM29-_Cost_StartRunning
	.dw 0x0d,0x0a
.code
LM29:
	call _Cal_GetHour	// call with return value
	CMP R1,[_c_uiNightTime1]	// QImode compare
	JB L9	// QImode GEU
	PC=L7
L9:
	call _Cal_GetHour	// call with return value
	CMP R1,[_c_uiNightTime2]	// QImode compare
	JA L10	// QImode LEU
	PC=L7
L10:
	pc=L6	// Indirect jump
L7:
.debug
	.dw '.stabn 0x44,0,92,',0,0
	.dd LM30-_Cost_StartRunning
	.dw 0x0d,0x0a
.code
LM30:
	R1=1	// QImode move
	[_uiNightRun]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,93,',0,0
	.dd LM31-_Cost_StartRunning
	.dw 0x0d,0x0a
.code
LM31:
	R1=[_c_fNightPricePerKM]	// HFmode RD=[Label]
	R2=[_c_fNightPricePerKM+1]
	[_fCurPrice]=R1	// HFmode [Label]=RS
	[_fCurPrice+1]=R2
.debug
	.dw '.stabn 0x44,0,94,',0,0
	.dd LM32-_Cost_StartRunning
	.dw 0x0d,0x0a
.code
LM32:
	R1=[_c_fNightStartPrice]	// HFmode RD=[Label]
	R2=[_c_fNightStartPrice+1]
	[_fCost]=R1	// HFmode [Label]=RS
	[_fCost+1]=R2
.debug
	.dw '.stabn 0x44,0,95,',0,0
	.dd LM33-_Cost_StartRunning
	.dw 0x0d,0x0a
.code
LM33:
	R1=0	// HFmode immediate to register move
	R2=0
	[_fDayMilege]=R1	// HFmode [Label]=RS
	[_fDayMilege+1]=R2
.debug
	.dw '.stabn 0x44,0,96,',0,0
	.dd LM34-_Cost_StartRunning
	.dw 0x0d,0x0a
.code
LM34:
	R1=[_c_fStartMilege]	// HFmode RD=[Label]
	R2=[_c_fStartMilege+1]
	R3=0	// HFmode immediate to register move
	R4=49024
	push R3,R4 to [sp]	// pushhf
	push R1,R2 to [sp]	// pushhf
	call __mulf2	// call with return value
	SP=SP+4
	[_fNightMilege]=R1	// HFmode [Label]=RS
	[_fNightMilege+1]=R2
.debug
	.dw '.stabn 0x44,0,97,',0,0
	.dd LM35-_Cost_StartRunning
	.dw 0x0d,0x0a
.code
LM35:
	pc=L8	// Indirect jump
L6:
.debug
	.dw '.stabn 0x44,0,100,',0,0
	.dd LM36-_Cost_StartRunning
	.dw 0x0d,0x0a
.code
LM36:
	R1=0	// QImode move
	[_uiNightRun]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,101,',0,0
	.dd LM37-_Cost_StartRunning
	.dw 0x0d,0x0a
.code
LM37:
	R1=[_c_fPricePerKM]	// HFmode RD=[Label]
	R2=[_c_fPricePerKM+1]
	[_fCurPrice]=R1	// HFmode [Label]=RS
	[_fCurPrice+1]=R2
.debug
	.dw '.stabn 0x44,0,102,',0,0
	.dd LM38-_Cost_StartRunning
	.dw 0x0d,0x0a
.code
LM38:
	R1=[_c_fStartPrice]	// HFmode RD=[Label]
	R2=[_c_fStartPrice+1]
	[_fCost]=R1	// HFmode [Label]=RS
	[_fCost+1]=R2
.debug
	.dw '.stabn 0x44,0,103,',0,0
	.dd LM39-_Cost_StartRunning
	.dw 0x0d,0x0a
.code
LM39:
	R1=[_c_fStartMilege]	// HFmode RD=[Label]
	R2=[_c_fStartMilege+1]
	R3=0	// HFmode immediate to register move
	R4=49024
	push R3,R4 to [sp]	// pushhf
	push R1,R2 to [sp]	// pushhf
	call __mulf2	// call with return value
	SP=SP+4
	[_fDayMilege]=R1	// HFmode [Label]=RS
	[_fDayMilege+1]=R2
.debug
	.dw '.stabn 0x44,0,104,',0,0
	.dd LM40-_Cost_StartRunning
	.dw 0x0d,0x0a
.code
LM40:
	R1=0	// HFmode immediate to register move
	R2=0
	[_fNightMilege]=R1	// HFmode [Label]=RS
	[_fNightMilege+1]=R2
L8:
.debug
	.dw '.stabn 0x44,0,106,',0,0
	.dd LM41-_Cost_StartRunning
	.dw 0x0d,0x0a
.code
LM41:
.debug
	.dw '.stabn 0x44,0,106,',0,0
	.dd LM42-_Cost_StartRunning
	.dw 0x0d,0x0a
.code
LM42:
L5:

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

.debug
	.dw '.stabf ',0,0
	.dd LME2-_Cost_StartRunning
	.dw 0x0d,0x0a
.code
LME2:
.code
.debug
	.dw '.stabs "Cost_StopRunning:F19",36,0,0,',0,0,offset _Cost_StopRunning,seg _Cost_StopRunning,0x0d,0x0a
.CODE
.public _Cost_StopRunning
_Cost_StopRunning:	.proc
.debug
	.dw '.stabn 0x44,0,115,',0,0
	.dd LM43-_Cost_StopRunning
	.dw 0x0d,0x0a
.code
LM43:
	// total=8, vars=8
	// frame_pointer_needed: 1
	push bp to [sp]
	sp-=8
	bp=sp+1

	R1=BP+11
	[BP]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,116,',0,0
	.dd LM44-_Cost_StopRunning
	.dw 0x0d,0x0a
.code
LM44:
	R1=[_uiWaiting]	// QImode move
	CMP R1,0	// QImode test
	JNZ L14	// QImode EQ
	PC=L12
L14:
.debug
	.dw '.stabn 0x44,0,118,',0,0
	.dd LM45-_Cost_StopRunning
	.dw 0x0d,0x0a
.code
LM45:
	R1=1	// QImode move
	[SP--]=R1	// QImode move
	call _Cal_ReadTimer	// call with return value
	SP=SP+1
	R3=1	// QImode move
	[SP--]=R3	// QImode move
	push R1,R2 to [sp]	// pushhi
	call __rshu2	// call with return value
	SP=SP+3
	[bp+6]=R1	// HImode [BP+#IM6]=RS
	[bp+7]=R2
	R3=[_ulWaitTime]	// HImode RD=[Label]
	R4=[_ulWaitTime+1]
	[bp+1]=R3	// HImode [BP+#IM6]=RS
	[bp+2]=R4
	R4=[bp+1]	// QImode move
	[bp+3]=R4	// QImode move
	R3=[bp+3]	// QImode move
	R4=[bp+6]	// QImode move
	R3+=R4	// addqi3_r0r
	[bp+3]=R3	// QImode move
	R1=[bp+3]	// QImode move
	R3=1	// QImode move
	[bp+4]=R3	// QImode move
	R4=[bp+3]	// QImode move
	R3=[bp+1]	// QImode move
	CMP R4,R3	// QImode compare
	JNB L15	// QImode LTU
	PC=L13
L15:
	R4=0	// QImode move
	[bp+4]=R4	// QImode move
L13:
	R3=[bp+2]	// QImode move
	[bp+5]=R3	// QImode move
	R4=[bp+5]	// QImode move
	R3=[bp+7]	// QImode move
	R4+=R3	// addqi3_r0r
	[bp+5]=R4	// QImode move
	R2=[bp+5]	// QImode move
	R3=[bp+5]	// QImode move
	R4=[bp+4]	// QImode move
	R3+=R4	// addqi3_r0r
	R2=R3	// QImode move
	[_ulWaitTime]=R1	// HImode [Label]=RS
	[_ulWaitTime+1]=R2
L12:
.debug
	.dw '.stabn 0x44,0,120,',0,0
	.dd LM46-_Cost_StopRunning
	.dw 0x0d,0x0a
.code
LM46:
	call _Dis_StopMessure	// call without return value
.debug
	.dw '.stabn 0x44,0,121,',0,0
	.dd LM47-_Cost_StopRunning
	.dw 0x0d,0x0a
.code
LM47:
	call _Speed_Stop	// call without return value
.debug
	.dw '.stabn 0x44,0,122,',0,0
	.dd LM48-_Cost_StopRunning
	.dw 0x0d,0x0a
.code
LM48:
	R1=0	// QImode move
	[_uiWaiting]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,124,',0,0
	.dd LM49-_Cost_StopRunning
	.dw 0x0d,0x0a
.code
LM49:
.debug
	.dw '.stabn 0x44,0,124,',0,0
	.dd LM50-_Cost_StopRunning
	.dw 0x0d,0x0a
.code
LM50:
L11:

	sp+=8
	pop bp from [sp]
	retf
	.endp	// end of Cost_StopRunning

.debug
	.dw '.stabf ',0,0
	.dd LME3-_Cost_StopRunning
	.dw 0x0d,0x0a
.code
LME3:
.code
.debug
	.dw '.stabs "Cost_ClearCost:F19",36,0,0,',0,0,offset _Cost_ClearCost,seg _Cost_ClearCost,0x0d,0x0a
.CODE
.public _Cost_ClearCost
_Cost_ClearCost:	.proc
.debug
	.dw '.stabn 0x44,0,133,',0,0

⌨️ 快捷键说明

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