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

📄 main.asm

📁 该程序基于凌阳单片机做的无线温度遥测系统
💻 ASM
📖 第 1 页 / 共 2 页
字号:
	[R2]=R3	// QImode move
.debug
	.dw '.stabn 0x44,0,35,',0,0
	.dd LM26-_xianshi
	.dw 0x0d,0x0a
.code
LM26:
L11:
	R1=BP	// QImode move
	R2=BP+4
	R3=BP	// QImode move
	R1=BP+4
	R2=BP	// QImode move
	R3=BP+4
	R4=R3	// QImode move
	R2=[R4]	// QImode move
	R3=R2+1
	R2=R1	// QImode move
	[R2]=R3	// QImode move
	pc=L9	// Indirect jump
L10:
.debug
	.dw '.stabn 0x44,0,29,',0,0
	.dd LM27-_xianshi
	.dw 0x0d,0x0a
.code
LM27:
L6:
	R1=BP	// QImode move
	R2=BP+5
	R3=BP	// QImode move
	R1=BP+5
	R2=BP	// QImode move
	R3=BP+5
	R4=R3	// QImode move
	R2=[R4]	// QImode move
	R3=R2+1
	R2=R1	// QImode move
	[R2]=R3	// QImode move
	pc=L4	// Indirect jump
L5:
.debug
	.dw '.stabn 0x44,0,49,',0,0
	.dd LM28-_xianshi
	.dw 0x0d,0x0a
.code
LM28:
LBE2:
.debug
	.dw '.stabn 0x44,0,49,',0,0
	.dd LM29-_xianshi
	.dw 0x0d,0x0a
.code
LM29:
L3:

	sp+=15
	pop bp from [sp]
	retf
	.endp	// end of xianshi

.debug
	.dw '.stabs "n:p1",160,0,0,18',0x0d,0x0a
.CODE
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB2-_xianshi
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabs "q:1",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "b:1",128,0,0,1',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "c:1",128,0,0,2',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "d:1",128,0,0,3',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "i:1",128,0,0,4',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "j:1",128,0,0,5',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "a:21=ar1;0;3;1",128,0,0,6',0x0d,0x0a
.CODE
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE2-_xianshi
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabf ',0,0
	.dd LME2-_xianshi
	.dw 0x0d,0x0a
.code
LME2:
.code
.debug
	.dw '.stabs "delay:F19",36,0,0,',0,0,offset _delay,seg _delay,0x0d,0x0a
.CODE
.public _delay
_delay:	.proc
.debug
	.dw '.stabs "D:/Sunplus/jinsai/jieshouji1/main.c",0x84,0,0,',0,0,offset Ltext2, seg Ltext2,0x0d,0x0a
.code
.code
Ltext2:
.debug
	.dw '.stabn 0x44,0,12,',0,0
	.dd LM30-_delay
	.dw 0x0d,0x0a
.code
LM30:
	// total=1, vars=1
	// frame_pointer_needed: 1
	push bp to [sp]
	sp-=1
	bp=sp+1

	R1=BP+4
.debug
	.dw '.stabn 0x44,0,13,',0,0
	.dd LM31-_delay
	.dw 0x0d,0x0a
.code
LM31:
LBB3:
.debug
	.dw '.stabn 0x44,0,14,',0,0
	.dd LM32-_delay
	.dw 0x0d,0x0a
.code
LM32:
	R3=R1	// QImode move
	R2=[R3]	// QImode move
	[BP]=R2	// QImode move
L20:
	R2=[BP]	// QImode move
	CMP R2,0	// QImode test
	NSJG L23	//QImode GT
	pc=L21	// Indirect jump
L23:
.debug
	.dw '.stabn 0x44,0,16,',0,0
	.dd LM33-_delay
	.dw 0x0d,0x0a
.code
LM33:
	R2=1	// QImode move
	[28690]=R2	// QImode move
.debug
	.dw '.stabn 0x44,0,14,',0,0
	.dd LM34-_delay
	.dw 0x0d,0x0a
.code
LM34:
L22:
	R2=[BP]	// QImode move
	R3=R2+(-1)
	[BP]=R3	// QImode move
	pc=L20	// Indirect jump
L21:
.debug
	.dw '.stabn 0x44,0,18,',0,0
	.dd LM35-_delay
	.dw 0x0d,0x0a
.code
LM35:
LBE3:
.debug
	.dw '.stabn 0x44,0,18,',0,0
	.dd LM36-_delay
	.dw 0x0d,0x0a
.code
LM36:
L19:

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

.debug
	.dw '.stabs "n:p1",160,0,0,4',0x0d,0x0a
.CODE
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB3-_delay
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabs "i:1",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE3-_delay
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabf ',0,0
	.dd LME3-_delay
	.dw 0x0d,0x0a
.code
LME3:
.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,22,',0,0
	.dd LM37-_main
	.dw 0x0d,0x0a
.code
LM37:
	// total=2, vars=2
	// frame_pointer_needed: 1
	push bp to [sp]
	sp-=2
	bp=sp+1

	R1=BP+5
	[bp+1]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,23,',0,0
	.dd LM38-_main
	.dw 0x0d,0x0a
.code
LM38:
LBB4:
.debug
	.dw '.stabn 0x44,0,24,',0,0
	.dd LM39-_main
	.dw 0x0d,0x0a
.code
LM39:
	R1=24	// QImode move
	[28691]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,31,',0,0
	.dd LM40-_main
	.dw 0x0d,0x0a
.code
LM40:
	R1=12288	// QImode move
	[28679]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,32,',0,0
	.dd LM41-_main
	.dw 0x0d,0x0a
.code
LM41:
	R1=12288	// QImode move
	[28680]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,34,',0,0
	.dd LM42-_main
	.dw 0x0d,0x0a
.code
LM42:
	R1=[28679]	// QImode move
	R2=R1|1024
	[28679]=R2	// QImode move
.debug
	.dw '.stabn 0x44,0,35,',0,0
	.dd LM43-_main
	.dw 0x0d,0x0a
.code
LM43:
	R1=[28680]	// QImode move
	R2=R1|1152
	[28680]=R2	// QImode move
.debug
	.dw '.stabn 0x44,0,36,',0,0
	.dd LM44-_main
	.dw 0x0d,0x0a
.code
LM44:
	R1=[28677]	// QImode move
	R2=R1|1024
	[28677]=R2	// QImode move
.debug
	.dw '.stabn 0x44,0,38,',0,0
	.dd LM45-_main
	.dw 0x0d,0x0a
.code
LM45:
	R1=0	// QImode move
	[28708]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,39,',0,0
	.dd LM46-_main
	.dw 0x0d,0x0a
.code
LM46:
	R1=5	// QImode move
	[28709]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,41,',0,0
	.dd LM47-_main
	.dw 0x0d,0x0a
.code
LM47:
	R1=0	// QImode move
	[28705]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,42,',0,0
	.dd LM48-_main
	.dw 0x0d,0x0a
.code
LM48:
	R1=192	// QImode move
	[28706]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,43,',0,0
	.dd LM49-_main
	.dw 0x0d,0x0a
.code
LM49:
	R1=0	// QImode move
	[BP]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,46,',0,0
	.dd LM50-_main
	.dw 0x0d,0x0a
.code
LM50:
L26:
	pc=L28	// Indirect jump
	pc=L27	// Indirect jump
L28:
.debug
	.dw '.stabn 0x44,0,48,',0,0
	.dd LM51-_main
	.dw 0x0d,0x0a
.code
LM51:
	R1=1	// QImode move
	[28690]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,49,',0,0
	.dd LM52-_main
	.dw 0x0d,0x0a
.code
LM52:
L29:
	R2=[28706]	// QImode move
	R1=R2&128
	CMP R1,0	// QImode test
	NSJNZ L31	//QImode NE
	pc=L30	// Indirect jump
L31:
.debug
	.dw '.stabn 0x44,0,51,',0,0
	.dd LM53-_main
	.dw 0x0d,0x0a
.code
LM53:
	R1=[28707]	// QImode move
	[BP]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,52,',0,0
	.dd LM54-_main
	.dw 0x0d,0x0a
.code
LM54:
	R1=1	// QImode move
	[28690]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,53,',0,0
	.dd LM55-_main
	.dw 0x0d,0x0a
.code
LM55:
L32:
	R2=[28706]	// QImode move
	R1=R2&64
	CMP R1,0	// QImode test
	NSJNZ L34	//QImode NE
	pc=L33	// Indirect jump
L34:
.debug
	.dw '.stabn 0x44,0,55,',0,0
	.dd LM56-_main
	.dw 0x0d,0x0a
.code
LM56:
	R1=[BP]	// QImode move
	[28707]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,56,',0,0
	.dd LM57-_main
	.dw 0x0d,0x0a
.code
LM57:
	R1=1	// QImode move
	[28690]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,57,',0,0
	.dd LM58-_main
	.dw 0x0d,0x0a
.code
LM58:
	pc=L33	// Indirect jump
.debug
	.dw '.stabn 0x44,0,58,',0,0
	.dd LM59-_main
	.dw 0x0d,0x0a
.code
LM59:
	pc=L32	// Indirect jump
L33:
.debug
	.dw '.stabn 0x44,0,59,',0,0
	.dd LM60-_main
	.dw 0x0d,0x0a
.code
LM60:
	pc=L29	// Indirect jump
L30:
.debug
	.dw '.stabn 0x44,0,60,',0,0
	.dd LM61-_main
	.dw 0x0d,0x0a
.code
LM61:
	R1=[BP]	// QImode move
	[SP--]=R1	// QImode move
	call _xianshi	// call without return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,61,',0,0
	.dd LM62-_main
	.dw 0x0d,0x0a
.code
LM62:
	R1=500	// QImode move
	[SP--]=R1	// QImode move
	call _delay	// call without return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,62,',0,0
	.dd LM63-_main
	.dw 0x0d,0x0a
.code
LM63:
	pc=L26	// Indirect jump
L27:
.debug
	.dw '.stabn 0x44,0,72,',0,0
	.dd LM64-_main
	.dw 0x0d,0x0a
.code
LM64:
LBE4:
.debug
	.dw '.stabn 0x44,0,72,',0,0
	.dd LM65-_main
	.dw 0x0d,0x0a
.code
LM65:
L25:

	sp+=2
	pop bp from [sp]
	retf
	.endp	// end of main

.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB4-_main
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabs "linshi:1",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE4-_main
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabf ',0,0
	.dd LME4-_main
	.dw 0x0d,0x0a
.code
LME4:
.external __divi1
	.end

⌨️ 快捷键说明

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