📄 distance.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\ccmIaaaa.i -quiet -dumpbase Distance.c -gstabs -Wall -o .\Debug/Distance.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/Distance.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 "Dis_Init:F19",36,0,0,',0,0,offset _Dis_Init,seg _Dis_Init,0x0d,0x0a
.CODE
.public _Dis_Init
_Dis_Init: .proc
.debug
.dw '.stabn 0x44,0,27,',0,0
.dd LM1-_Dis_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,28,',0,0
.dd LM2-_Dis_Init
.dw 0x0d,0x0a
.code
LM2:
R2=[_C_PulsePerKM] // QImode move
[_c_uiPulsePerKM]=R2 // QImode move
.debug
.dw '.stabn 0x44,0,29,',0,0
.dd LM3-_Dis_Init
.dw 0x0d,0x0a
.code
LM3:
R2=0 // QImode move
[_uiDistance]=R2 // QImode move
.debug
.dw '.stabn 0x44,0,30,',0,0
.dd LM4-_Dis_Init
.dw 0x0d,0x0a
.code
LM4:
R2=0 // QImode move
[_uiPulseNum]=R2 // QImode move
.debug
.dw '.stabn 0x44,0,31,',0,0
.dd LM5-_Dis_Init
.dw 0x0d,0x0a
.code
LM5:
R2=0 // QImode move
[_uiSpeed]=R2 // QImode move
.debug
.dw '.stabn 0x44,0,32,',0,0
.dd LM6-_Dis_Init
.dw 0x0d,0x0a
.code
LM6:
R2=[28679] // QImode move
R3=R2&(-5)
[28679]=R3 // QImode move
.debug
.dw '.stabn 0x44,0,33,',0,0
.dd LM7-_Dis_Init
.dw 0x0d,0x0a
.code
LM7:
R2=[28680] // QImode move
R3=R2&(-5)
[28680]=R3 // QImode move
.debug
.dw '.stabn 0x44,0,34,',0,0
.dd LM8-_Dis_Init
.dw 0x0d,0x0a
.code
LM8:
R2=[28678] // QImode move
R3=R2|4
[28678]=R3 // QImode move
.debug
.dw '.stabn 0x44,0,35,',0,0
.dd LM9-_Dis_Init
.dw 0x0d,0x0a
.code
LM9:
.debug
.dw '.stabn 0x44,0,35,',0,0
.dd LM10-_Dis_Init
.dw 0x0d,0x0a
.code
LM10:
L2:
pop bp from [sp]
retf
.endp // end of Dis_Init
.debug
.dw '.stabf ',0,0
.dd LME1-_Dis_Init
.dw 0x0d,0x0a
.code
LME1:
.code
.debug
.dw '.stabs "Dis_StartMessure:F19",36,0,0,',0,0,offset _Dis_StartMessure,seg _Dis_StartMessure,0x0d,0x0a
.CODE
.public _Dis_StartMessure
_Dis_StartMessure: .proc
.debug
.dw '.stabn 0x44,0,44,',0,0
.dd LM11-_Dis_StartMessure
.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,45,',0,0
.dd LM12-_Dis_StartMessure
.dw 0x0d,0x0a
.code
LM12:
R1=256 // QImode move
[SP--]=R1 // QImode move
call _SetINTStatus // call without return value
SP=SP+1
.debug
.dw '.stabn 0x44,0,46,',0,0
.dd LM13-_Dis_StartMessure
.dw 0x0d,0x0a
.code
LM13:
R1=0 // QImode move
[_uiDistance]=R1 // QImode move
.debug
.dw '.stabn 0x44,0,47,',0,0
.dd LM14-_Dis_StartMessure
.dw 0x0d,0x0a
.code
LM14:
R1=0 // HImode immediate to register move
R2=0
[_ulPulseForSpeed]=R1 // HImode [Label]=RS
[_ulPulseForSpeed+1]=R2
.debug
.dw '.stabn 0x44,0,48,',0,0
.dd LM15-_Dis_StartMessure
.dw 0x0d,0x0a
.code
LM15:
R1=0 // QImode move
[_uiPulseNum]=R1 // QImode move
.debug
.dw '.stabn 0x44,0,49,',0,0
.dd LM16-_Dis_StartMessure
.dw 0x0d,0x0a
.code
LM16:
R1=0 // QImode move
[SP--]=R1 // QImode move
call _Cal_StartTimer // call without return value
SP=SP+1
.debug
.dw '.stabn 0x44,0,50,',0,0
.dd LM17-_Dis_StartMessure
.dw 0x0d,0x0a
.code
LM17:
// GCC inline ASM start
IRQ ON
// GCC inline ASM end
.debug
.dw '.stabn 0x44,0,51,',0,0
.dd LM18-_Dis_StartMessure
.dw 0x0d,0x0a
.code
LM18:
.debug
.dw '.stabn 0x44,0,51,',0,0
.dd LM19-_Dis_StartMessure
.dw 0x0d,0x0a
.code
LM19:
L3:
sp+=1
pop bp from [sp]
retf
.endp // end of Dis_StartMessure
.debug
.dw '.stabf ',0,0
.dd LME2-_Dis_StartMessure
.dw 0x0d,0x0a
.code
LME2:
.code
.debug
.dw '.stabs "Dis_StopMessure:F19",36,0,0,',0,0,offset _Dis_StopMessure,seg _Dis_StopMessure,0x0d,0x0a
.CODE
.public _Dis_StopMessure
_Dis_StopMessure: .proc
.debug
.dw '.stabn 0x44,0,60,',0,0
.dd LM20-_Dis_StopMessure
.dw 0x0d,0x0a
.code
LM20:
// 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,61,',0,0
.dd LM21-_Dis_StopMessure
.dw 0x0d,0x0a
.code
LM21:
R1=256 // QImode move
[SP--]=R1 // QImode move
call _ClearINTStatus // call without return value
SP=SP+1
.debug
.dw '.stabn 0x44,0,62,',0,0
.dd LM22-_Dis_StopMessure
.dw 0x0d,0x0a
.code
LM22:
.debug
.dw '.stabn 0x44,0,62,',0,0
.dd LM23-_Dis_StopMessure
.dw 0x0d,0x0a
.code
LM23:
L4:
sp+=1
pop bp from [sp]
retf
.endp // end of Dis_StopMessure
.debug
.dw '.stabf ',0,0
.dd LME3-_Dis_StopMessure
.dw 0x0d,0x0a
.code
LME3:
.code
.debug
.dw '.stabs "Dis_ClearDistance:F19",36,0,0,',0,0,offset _Dis_ClearDistance,seg _Dis_ClearDistance,0x0d,0x0a
.CODE
.public _Dis_ClearDistance
_Dis_ClearDistance: .proc
.debug
.dw '.stabn 0x44,0,71,',0,0
.dd LM24-_Dis_ClearDistance
.dw 0x0d,0x0a
.code
LM24:
// 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,72,',0,0
.dd LM25-_Dis_ClearDistance
.dw 0x0d,0x0a
.code
LM25:
R1=0 // QImode move
[_uiDistance]=R1 // QImode move
.debug
.dw '.stabn 0x44,0,73,',0,0
.dd LM26-_Dis_ClearDistance
.dw 0x0d,0x0a
.code
LM26:
R1=0 // QImode move
[_uiPulseNum]=R1 // QImode move
.debug
.dw '.stabn 0x44,0,74,',0,0
.dd LM27-_Dis_ClearDistance
.dw 0x0d,0x0a
.code
LM27:
R1=0 // QImode move
[_uiSpeed]=R1 // QImode move
.debug
.dw '.stabn 0x44,0,75,',0,0
.dd LM28-_Dis_ClearDistance
.dw 0x0d,0x0a
.code
LM28:
R1=0 // QImode move
[SP--]=R1 // QImode move
call _Cal_ClearTimer // call without return value
SP=SP+1
.debug
.dw '.stabn 0x44,0,76,',0,0
.dd LM29-_Dis_ClearDistance
.dw 0x0d,0x0a
.code
LM29:
.debug
.dw '.stabn 0x44,0,76,',0,0
.dd LM30-_Dis_ClearDistance
.dw 0x0d,0x0a
.code
LM30:
L5:
sp+=1
pop bp from [sp]
retf
.endp // end of Dis_ClearDistance
.debug
.dw '.stabf ',0,0
.dd LME4-_Dis_ClearDistance
.dw 0x0d,0x0a
.code
LME4:
.code
.debug
.dw '.stabs "Dis_GetDistance:F12",36,0,0,',0,0,offset _Dis_GetDistance,seg _Dis_GetDistance,0x0d,0x0a
.CODE
.public _Dis_GetDistance
_Dis_GetDistance: .proc
.debug
.dw '.stabn 0x44,0,85,',0,0
.dd LM31-_Dis_GetDistance
.dw 0x0d,0x0a
.code
LM31:
// total=5, vars=5
// frame_pointer_needed: 1
push bp to [sp]
sp-=5
bp=sp+1
R1=BP+8
[BP]=R1 // QImode move
.debug
.dw '.stabn 0x44,0,86,',0,0
.dd LM32-_Dis_GetDistance
.dw 0x0d,0x0a
.code
LM32:
R1=[_uiDistance]
R2=0
push R1,R2 to [sp] // pushhi
call __cvi2f2 // call with return value
SP=SP+2
[bp+1]=R1 // HFmode [BP+#IM6]=RS
[bp+2]=R2
R1=[_uiPulseNum]
R2=0
push R1,R2 to [sp] // pushhi
call __cvi2f2 // call with return value
SP=SP+2
[bp+3]=R1 // HFmode [BP+#IM6]=RS
[bp+4]=R2
R1=[_c_uiPulsePerKM]
R2=0
push R1,R2 to [sp] // pushhi
call __cvi2f2 // call with return value
SP=SP+2
push R1,R2 to [sp] // pushhf
R3=[bp+3] // HFmode RD=[BP+#IM6]
R4=[bp+4]
push R3,R4 to [sp] // pushhf
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -