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

📄 main.asm

📁 此程序为出租车计价器
💻 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\ADMINI~1\LOCALS~1\Temp\ccaUaaaa.i -quiet -dumpbase main.c -gstabs -Wall -o .\Debug/main.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/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 "_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
.debug
	.dw '.stabs "WORD:t22=4",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs " :T23=eIDLE:0,RUN:1,SYSSET:2,;",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "Status:t24=23",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "_SYSSETMAP:T25=s6Start_X:4,0,16;Start_Y:4,16,16;\\",128,0,0,0',0x0d,0x0a
	.DW '.stabs "Len:4,32,16;Value:26=*4,48,16;MinValue:4,64,16;\\",128,0,0,0',0x0d,0x0a
	.DW '.stabs "MaxValue:4,80,16;;",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "SetMap:t27=25",128,0,0,0',0x0d,0x0a
.CODE
.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,51,',0,0
	.dd LM1-_main
	.dw 0x0d,0x0a
.code
LM1:
	// total=3, vars=3
	// frame_pointer_needed: 1
	push bp to [sp]
	sp-=3
	bp=sp+1

	R1=BP+6
	[bp+2]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,52,',0,0
	.dd LM2-_main
	.dw 0x0d,0x0a
.code
LM2:
LBB2:
.debug
	.dw '.stabn 0x44,0,53,',0,0
	.dd LM3-_main
	.dw 0x0d,0x0a
.code
LM3:
	R1=0	// QImode move
	[_SysStatus]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,54,',0,0
	.dd LM4-_main
	.dw 0x0d,0x0a
.code
LM4:
	call _KeyScan_Init	// call without return value
.debug
	.dw '.stabn 0x44,0,55,',0,0
	.dd LM5-_main
	.dw 0x0d,0x0a
.code
LM5:
	R1=4	// QImode move
	[SP--]=R1	// QImode move
	call _SetINTStatus	// call without return value
	SP=SP+1
.debug
	.dw '.stabn 0x44,0,56,',0,0
	.dd LM6-_main
	.dw 0x0d,0x0a
.code
LM6:
	R1=16	// QImode move
	[SP--]=R1	// QImode move
	call _SetINTStatus	// call without return value
	SP=SP+1
.debug
	.dw '.stabn 0x44,0,57,',0,0
	.dd LM7-_main
	.dw 0x0d,0x0a
.code
LM7:
// GCC inline ASM start
	IRQ ON
// GCC inline ASM end
.debug
	.dw '.stabn 0x44,0,58,',0,0
	.dd LM8-_main
	.dw 0x0d,0x0a
.code
LM8:
	call _InterFace_Init	// call without return value
.debug
	.dw '.stabn 0x44,0,59,',0,0
	.dd LM9-_main
	.dw 0x0d,0x0a
.code
LM9:
	call _InterFace_Normal	// call without return value
.debug
	.dw '.stabn 0x44,0,60,',0,0
	.dd LM10-_main
	.dw 0x0d,0x0a
.code
LM10:
	R1=[_SysStatus]	// QImode move
	[SP--]=R1	// QImode move
	call _InterFace_UpdateStatus	// call without return value
	SP=SP+1
.debug
	.dw '.stabn 0x44,0,61,',0,0
	.dd LM11-_main
	.dw 0x0d,0x0a
.code
LM11:
L3:
	pc=L5	// Indirect jump
	pc=L4	// Indirect jump
L5:
.debug
	.dw '.stabn 0x44,0,63,',0,0
	.dd LM12-_main
	.dw 0x0d,0x0a
.code
LM12:
	R1=BP+1
	[SP--]=R1	// QImode move
	call _KeyScan_GetKey	// call with return value
	SP=SP+1
	[BP]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,64,',0,0
	.dd LM13-_main
	.dw 0x0d,0x0a
.code
LM13:
	R1=[BP]	// QImode move
	CMP R1,2	// QImode compare
	JNZ L26	// QImode EQ
	PC=L12
L26:
	CMP R1,2	// QImode compare
	JNA L27	// QImode GTU
	PC=L24
L27:
	CMP R1,1	// QImode compare
	JNZ L28	// QImode EQ
	PC=L17
L28:
	pc=L22	// Indirect jump
L24:
	CMP R1,4	// QImode compare
	JNZ L29	// QImode EQ
	PC=L7
L29:
	pc=L22	// Indirect jump
L7:
.debug
	.dw '.stabn 0x44,0,67,',0,0
	.dd LM14-_main
	.dw 0x0d,0x0a
.code
LM14:
	R1=BP	// QImode move
	R2=BP+1
	R3=R2	// QImode move
	R1=[R3]	// QImode move
	CMP R1,3	// QImode compare
	JZ L30	// QImode NE
	PC=L8
L30:
.debug
	.dw '.stabn 0x44,0,69,',0,0
	.dd LM15-_main
	.dw 0x0d,0x0a
.code
LM15:
	R1=[_SysStatus]	// QImode move
	CMP R1,0	// QImode test
	JZ L31	// QImode NE
	PC=L9
L31:
.debug
	.dw '.stabn 0x44,0,71,',0,0
	.dd LM16-_main
	.dw 0x0d,0x0a
.code
LM16:
	R1=1	// QImode move
	[_SysStatus]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,72,',0,0
	.dd LM17-_main
	.dw 0x0d,0x0a
.code
LM17:
	call _Cost_StartRunning	// call without return value
.debug
	.dw '.stabn 0x44,0,73,',0,0
	.dd LM18-_main
	.dw 0x0d,0x0a
.code
LM18:
	call _InterFace_UpdatePrice	// call without return value
.debug
	.dw '.stabn 0x44,0,74,',0,0
	.dd LM19-_main
	.dw 0x0d,0x0a
.code
LM19:
	R1=[_SysStatus]	// QImode move
	[SP--]=R1	// QImode move
	call _InterFace_UpdateStatus	// call without return value
	SP=SP+1
.debug
	.dw '.stabn 0x44,0,75,',0,0
	.dd LM20-_main
	.dw 0x0d,0x0a
.code
LM20:
	R1=0	// QImode move
	[SP--]=R1	// QImode move
	call _Cal_GetHour	// call with return value
	[SP--]=R1	// QImode move
	call _Cal_GetHello	// call with return value
	SP=SP+1
	R2=R1+11
	[SP--]=R2	// QImode move
	call _PlaySnd	// call without return value
	SP=SP+2
.debug
	.dw '.stabn 0x44,0,76,',0,0
	.dd LM21-_main
	.dw 0x0d,0x0a
.code
LM21:
	R1=2	// QImode move
	[SP--]=R1	// QImode move
	R1=15	// QImode move
	[SP--]=R1	// QImode move
	call _PlaySnd	// call without return value
	SP=SP+2
.debug
	.dw '.stabn 0x44,0,77,',0,0
	.dd LM22-_main
	.dw 0x0d,0x0a
.code
LM22:
	pc=L8	// Indirect jump
L9:
.debug
	.dw '.stabn 0x44,0,78,',0,0
	.dd LM23-_main
	.dw 0x0d,0x0a
.code
LM23:
	R1=[_SysStatus]	// QImode move
	CMP R1,1	// QImode compare
	JZ L32	// QImode NE
	PC=L8
L32:
.debug
	.dw '.stabn 0x44,0,80,',0,0
	.dd LM24-_main
	.dw 0x0d,0x0a
.code
LM24:
	R1=0	// QImode move
	[_SysStatus]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,81,',0,0
	.dd LM25-_main
	.dw 0x0d,0x0a
.code
LM25:
	call _Cost_StopRunning	// call without return value
.debug
	.dw '.stabn 0x44,0,82,',0,0
	.dd LM26-_main
	.dw 0x0d,0x0a
.code
LM26:
	call _InterFace_UpdatePrice	// call without return value
.debug
	.dw '.stabn 0x44,0,83,',0,0
	.dd LM27-_main
	.dw 0x0d,0x0a
.code
LM27:
	R1=[_SysStatus]	// QImode move
	[SP--]=R1	// QImode move
	call _InterFace_UpdateStatus	// call without return value
	SP=SP+1
.debug
	.dw '.stabn 0x44,0,84,',0,0
	.dd LM28-_main
	.dw 0x0d,0x0a
.code
LM28:
	R1=0	// QImode move
	[SP--]=R1	// QImode move
	R1=16	// QImode move
	[SP--]=R1	// QImode move
	call _PlaySnd	// call without return value
	SP=SP+2
.debug
	.dw '.stabn 0x44,0,85,',0,0
	.dd LM29-_main
	.dw 0x0d,0x0a
.code
LM29:
	call _PlayDistance	// call without return value
.debug
	.dw '.stabn 0x44,0,86,',0,0
	.dd LM30-_main
	.dw 0x0d,0x0a
.code
LM30:
	R1=2	// QImode move
	[SP--]=R1	// QImode move
	R1=17	// QImode move

⌨️ 快捷键说明

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