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

📄 ds18b20.asm

📁 该程序基于凌阳单片机做的无线温度遥测系统
💻 ASM
📖 第 1 页 / 共 2 页
字号:
// GCC for SUNPLUS u'nSP version 1.0.21-3
// Command: D:\Sunplus\UNSPID~1.0\cc1.exe C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ccgDaaaa.i -fkeep-inline-functions -quiet -dumpbase DS18B20.c -mglobal-var-iram -gstabs -Wall -o .\Debug/DS18B20.asm
	.external __sn_func_ptr_sec

// gcc2_compiled.:

.debug
	.dw '.stabs "D:/new/tongyongfinal(jieshou+yuyin)/",0x64,0,3,',0,0,offset Ltext0,seg Ltext0,0x0d,0x0a
.code
.debug
	.dw '.stabs "D:/new/tongyongfinal(jieshou+yuyin)/DS18B20.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 "Delay:F19",36,0,0,',0,0,offset _Delay,seg _Delay,0x0d,0x0a
.CODE
.public _Delay
_Delay:	.proc
.debug
	.dw '.stabn 0x44,0,20,',0,0
	.dd LM1-_Delay
	.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,21,',0,0
	.dd LM2-_Delay
	.dw 0x0d,0x0a
.code
LM2:
L3:
	R3=R1	// QImode move
	R2=[R3]	// QImode move
	CMP R2,0	// QImode test
	NSJNZ L5	//QImode NE
	pc=L4	// Indirect jump
L5:
.debug
	.dw '.stabn 0x44,0,23,',0,0
	.dd LM3-_Delay
	.dw 0x0d,0x0a
.code
LM3:
	R3=R1	// QImode move
	R2=[R3]	// QImode move
	R3=R2+(-1)
	R2=R1	// QImode move
	[R2]=R3	// QImode move
.debug
	.dw '.stabn 0x44,0,24,',0,0
	.dd LM4-_Delay
	.dw 0x0d,0x0a
.code
LM4:
	pc=L3	// Indirect jump
L4:
.debug
	.dw '.stabn 0x44,0,25,',0,0
	.dd LM5-_Delay
	.dw 0x0d,0x0a
.code
LM5:
.debug
	.dw '.stabn 0x44,0,25,',0,0
	.dd LM6-_Delay
	.dw 0x0d,0x0a
.code
LM6:
L2:

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

.debug
	.dw '.stabs "uiTime:p4",160,0,0,3',0x0d,0x0a
.CODE
.debug
	.dw '.stabf ',0,0
	.dd LME1-_Delay
	.dw 0x0d,0x0a
.code
LME1:
.code
.debug
	.dw '.stabs "Set_DQ:F19",36,0,0,',0,0,offset _Set_DQ,seg _Set_DQ,0x0d,0x0a
.CODE
.public _Set_DQ
_Set_DQ:	.proc
.debug
	.dw '.stabn 0x44,0,35,',0,0
	.dd LM7-_Set_DQ
	.dw 0x0d,0x0a
.code
LM7:
	// total=0, vars=0
	// frame_pointer_needed: 1
	push bp to [sp]
	bp=sp+1

	R1=BP+3
.debug
	.dw '.stabn 0x44,0,36,',0,0
	.dd LM8-_Set_DQ
	.dw 0x0d,0x0a
.code
LM8:
	R3=R1	// QImode move
	R2=[R3]	// QImode move
	CMP R2,0	// QImode test
	NSJNG L8	//QImode LE
.debug
	.dw '.stabn 0x44,0,37,',0,0
	.dd LM9-_Set_DQ
	.dw 0x0d,0x0a
.code
LM9:
	R2=[28674]	// QImode move
	R3=R2|(-32768)
	[28674]=R3	// QImode move
	pc=L9	// Indirect jump
L8:
.debug
	.dw '.stabn 0x44,0,39,',0,0
	.dd LM10-_Set_DQ
	.dw 0x0d,0x0a
.code
LM10:
	R2=[28674]	// QImode move
	R3=R2&32767
	[28674]=R3	// QImode move
L9:
.debug
	.dw '.stabn 0x44,0,40,',0,0
	.dd LM11-_Set_DQ
	.dw 0x0d,0x0a
.code
LM11:
	R2=[28673]	// QImode move
	R3=R2|(-32768)
	[28673]=R3	// QImode move
.debug
	.dw '.stabn 0x44,0,41,',0,0
	.dd LM12-_Set_DQ
	.dw 0x0d,0x0a
.code
LM12:
.debug
	.dw '.stabn 0x44,0,41,',0,0
	.dd LM13-_Set_DQ
	.dw 0x0d,0x0a
.code
LM13:
L7:

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

.debug
	.dw '.stabs "Dir:p1",160,0,0,3',0x0d,0x0a
.CODE
.debug
	.dw '.stabf ',0,0
	.dd LME2-_Set_DQ
	.dw 0x0d,0x0a
.code
LME2:
.code
.debug
	.dw '.stabs "Clr_DQ:F19",36,0,0,',0,0,offset _Clr_DQ,seg _Clr_DQ,0x0d,0x0a
.CODE
.public _Clr_DQ
_Clr_DQ:	.proc
.debug
	.dw '.stabn 0x44,0,51,',0,0
	.dd LM14-_Clr_DQ
	.dw 0x0d,0x0a
.code
LM14:
	// total=0, vars=0
	// frame_pointer_needed: 1
	push bp to [sp]
	bp=sp+1

	R1=BP+3
.debug
	.dw '.stabn 0x44,0,52,',0,0
	.dd LM15-_Clr_DQ
	.dw 0x0d,0x0a
.code
LM15:
	R3=R1	// QImode move
	R2=[R3]	// QImode move
	CMP R2,0	// QImode test
	NSJNG L12	//QImode LE
.debug
	.dw '.stabn 0x44,0,53,',0,0
	.dd LM16-_Clr_DQ
	.dw 0x0d,0x0a
.code
LM16:
	R2=[28674]	// QImode move
	R3=R2|(-32768)
	[28674]=R3	// QImode move
	pc=L13	// Indirect jump
L12:
.debug
	.dw '.stabn 0x44,0,55,',0,0
	.dd LM17-_Clr_DQ
	.dw 0x0d,0x0a
.code
LM17:
	R2=[28674]	// QImode move
	R3=R2&32767
	[28674]=R3	// QImode move
L13:
.debug
	.dw '.stabn 0x44,0,56,',0,0
	.dd LM18-_Clr_DQ
	.dw 0x0d,0x0a
.code
LM18:
	R2=[28673]	// QImode move
	R3=R2&32767
	[28673]=R3	// QImode move
.debug
	.dw '.stabn 0x44,0,57,',0,0
	.dd LM19-_Clr_DQ
	.dw 0x0d,0x0a
.code
LM19:
.debug
	.dw '.stabn 0x44,0,57,',0,0
	.dd LM20-_Clr_DQ
	.dw 0x0d,0x0a
.code
LM20:
L11:

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

.debug
	.dw '.stabs "Dir:p1",160,0,0,3',0x0d,0x0a
.CODE
.debug
	.dw '.stabf ',0,0
	.dd LME3-_Clr_DQ
	.dw 0x0d,0x0a
.code
LME3:
.code
.debug
	.dw '.stabs "Read_DQ:F4",36,0,0,',0,0,offset _Read_DQ,seg _Read_DQ,0x0d,0x0a
.CODE
.public _Read_DQ
_Read_DQ:	.proc
.debug
	.dw '.stabn 0x44,0,67,',0,0
	.dd LM21-_Read_DQ
	.dw 0x0d,0x0a
.code
LM21:
	// total=1, vars=1
	// frame_pointer_needed: 1
	push bp to [sp]
	sp-=1
	bp=sp+1

	R2=BP+4
.debug
	.dw '.stabn 0x44,0,68,',0,0
	.dd LM22-_Read_DQ
	.dw 0x0d,0x0a
.code
LM22:
LBB2:
.debug
	.dw '.stabn 0x44,0,69,',0,0
	.dd LM23-_Read_DQ
	.dw 0x0d,0x0a
.code
LM23:
	R1=0	// QImode move
	[BP]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,70,',0,0
	.dd LM24-_Read_DQ
	.dw 0x0d,0x0a
.code
LM24:
	R3=[28672]	// QImode move
	R1=R3&(-32768)
	CMP R1,0	// QImode test
	NSJZ L16	//QImode EQ
.debug
	.dw '.stabn 0x44,0,71,',0,0
	.dd LM25-_Read_DQ
	.dw 0x0d,0x0a
.code
LM25:
	R1=1	// QImode move
	[BP]=R1	// QImode move
L16:
.debug
	.dw '.stabn 0x44,0,72,',0,0
	.dd LM26-_Read_DQ
	.dw 0x0d,0x0a
.code
LM26:
	R3=[BP]	// QImode move
	R1=R3	// QImode move
	pc=L15	// Indirect jump
.debug
	.dw '.stabn 0x44,0,73,',0,0
	.dd LM27-_Read_DQ
	.dw 0x0d,0x0a
.code
LM27:
LBE2:
.debug
	.dw '.stabn 0x44,0,73,',0,0
	.dd LM28-_Read_DQ
	.dw 0x0d,0x0a
.code
LM28:
L15:

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

.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB2-_Read_DQ
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabs "uiTemp:4",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE2-_Read_DQ
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabf ',0,0
	.dd LME4-_Read_DQ
	.dw 0x0d,0x0a
.code
LME4:
.code
.debug
	.dw '.stabs "Read_18B20_Byte:F4",36,0,0,',0,0,offset _Read_18B20_Byte,seg _Read_18B20_Byte,0x0d,0x0a
.CODE
.public _Read_18B20_Byte
_Read_18B20_Byte:	.proc
.debug
	.dw '.stabn 0x44,0,83,',0,0
	.dd LM29-_Read_18B20_Byte
	.dw 0x0d,0x0a
.code
LM29:
	// 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,84,',0,0
	.dd LM30-_Read_18B20_Byte
	.dw 0x0d,0x0a
.code
LM30:
LBB3:
.debug
	.dw '.stabn 0x44,0,86,',0,0
	.dd LM31-_Read_18B20_Byte
	.dw 0x0d,0x0a
.code
LM31:
	R1=BP	// QImode move
	R2=BP+1
	R1=0	// QImode move
	R3=R2	// QImode move
	[R3]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,87,',0,0
	.dd LM32-_Read_18B20_Byte
	.dw 0x0d,0x0a
.code
LM32:
	R1=0	// QImode move
	[BP]=R1	// QImode move
L19:
	R1=[BP]	// QImode move
	CMP R1,7	// QImode compare
	NSJNG L22	//QImode LE
	pc=L20	// Indirect jump
L22:
.debug
	.dw '.stabn 0x44,0,89,',0,0
	.dd LM33-_Read_18B20_Byte
	.dw 0x0d,0x0a
.code
LM33:
	R1=1	// QImode move
	[SP--]=R1	// QImode move
	call _Set_DQ	// call without return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,90,',0,0
	.dd LM34-_Read_18B20_Byte
	.dw 0x0d,0x0a
.code
LM34:
	R1=1	// QImode move
	[SP--]=R1	// QImode move
	call _Delay	// call without return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,91,',0,0
	.dd LM35-_Read_18B20_Byte
	.dw 0x0d,0x0a
.code
LM35:
	R1=1	// QImode move
	[SP--]=R1	// QImode move
	call _Clr_DQ	// call without return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,92,',0,0
	.dd LM36-_Read_18B20_Byte
	.dw 0x0d,0x0a
.code
LM36:
	R1=2	// QImode move
	[SP--]=R1	// QImode move
	call _Delay	// call without return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,93,',0,0
	.dd LM37-_Read_18B20_Byte
	.dw 0x0d,0x0a
.code
LM37:
	R1=0	// QImode move
	[SP--]=R1	// QImode move
	call _Set_DQ	// call without return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,94,',0,0
	.dd LM38-_Read_18B20_Byte
	.dw 0x0d,0x0a
.code
LM38:
	R2=BP	// QImode move
	R1=BP+1
	R2=BP	// QImode move
	R3=BP+1
	R4=R3	// QImode move
	R2=[R4]	// QImode move
	R3=R2 lsr 1
	R2=R1	// QImode move
	[R2]=R3	// QImode move
.debug
	.dw '.stabn 0x44,0,95,',0,0
	.dd LM39-_Read_18B20_Byte
	.dw 0x0d,0x0a
.code
LM39:
	call _Read_DQ	// call with return value
	CMP R1,0	// QImode test
	NSJZ L23	//QImode EQ
.debug
	.dw '.stabn 0x44,0,96,',0,0
	.dd LM40-_Read_18B20_Byte
	.dw 0x0d,0x0a
.code
LM40:
	R2=BP	// QImode move
	R1=BP+1
	R2=BP	// QImode move
	R3=BP+1
	R4=R3	// QImode move
	R4=[R4]	// QImode move
	R2=R4|128
	R4=R1	// QImode move
	[R4]=R2	// QImode move
L23:
.debug
	.dw '.stabn 0x44,0,97,',0,0
	.dd LM41-_Read_18B20_Byte
	.dw 0x0d,0x0a
.code
LM41:
	R1=31	// QImode move
	[SP--]=R1	// QImode move
	call _Delay	// call without return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,87,',0,0
	.dd LM42-_Read_18B20_Byte
	.dw 0x0d,0x0a
.code
LM42:
L21:
	R1=[BP]	// QImode move
	R2=R1+1
	[BP]=R2	// QImode move
	pc=L19	// Indirect jump
L20:
.debug
	.dw '.stabn 0x44,0,99,',0,0
	.dd LM43-_Read_18B20_Byte
	.dw 0x0d,0x0a
.code
LM43:
	R1=BP	// QImode move
	R2=BP+1
	R1=R2	// QImode move
	R3=[R1]	// QImode move
	R1=R3	// QImode move
	pc=L18	// Indirect jump
.debug
	.dw '.stabn 0x44,0,100,',0,0
	.dd LM44-_Read_18B20_Byte
	.dw 0x0d,0x0a
.code
LM44:
LBE3:
.debug
	.dw '.stabn 0x44,0,100,',0,0
	.dd LM45-_Read_18B20_Byte
	.dw 0x0d,0x0a
.code
LM45:
L18:

	sp+=3
	pop bp from [sp]
	retf
	.endp	// end of Read_18B20_Byte

.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB3-_Read_18B20_Byte
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabs "i:1",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "Data:4",128,0,0,1',0x0d,0x0a
.CODE
.debug
	.dw '.stabn 0xe0,0,0,',0,0

⌨️ 快捷键说明

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