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

📄 main.asm

📁 单片机开发的数字电压表,带保护提示功能,精确度比较高
💻 ASM
📖 第 1 页 / 共 5 页
字号:
.code
LM190:
	R1=20	// QImode move
	[SP--]=R1	// QImode move
	R1=60	// QImode move
	[SP--]=R1	// QImode move
	R1=3	// QImode move
	[SP--]=R1	// QImode move
	R1=LC31	// QImode move
	[SP--]=R1	// QImode move
	call _FG_PutStr	// call with return value
	SP = SP + 4	//SP
.debug
	.dw '.stabn 0x44,0,315,',0,0
	.dd LM191-_main
	.dw 0x0d,0x0a
.code
LM191:
	R1=7	// QImode move
	[SP--]=R1	// QImode move
	call _PlayS480	// call without return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,316,',0,0
	.dd LM192-_main
	.dw 0x0d,0x0a
.code
LM192:
	pc=L57	// Indirect jump
L66:
.debug
	.dw '.stabn 0x44,0,318,',0,0
	.dd LM193-_main
	.dw 0x0d,0x0a
.code
LM193:
	R1=20	// QImode move
	[SP--]=R1	// QImode move
	R1=60	// QImode move
	[SP--]=R1	// QImode move
	R1=3	// QImode move
	[SP--]=R1	// QImode move
	R1=LC32	// QImode move
	[SP--]=R1	// QImode move
	call _FG_PutStr	// call with return value
	SP = SP + 4	//SP
.debug
	.dw '.stabn 0x44,0,319,',0,0
	.dd LM194-_main
	.dw 0x0d,0x0a
.code
LM194:
	R1=8	// QImode move
	[SP--]=R1	// QImode move
	call _PlayS480	// call without return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,320,',0,0
	.dd LM195-_main
	.dw 0x0d,0x0a
.code
LM195:
	pc=L57	// Indirect jump
L67:
.debug
	.dw '.stabn 0x44,0,322,',0,0
	.dd LM196-_main
	.dw 0x0d,0x0a
.code
LM196:
	R1=20	// QImode move
	[SP--]=R1	// QImode move
	R1=60	// QImode move
	[SP--]=R1	// QImode move
	R1=3	// QImode move
	[SP--]=R1	// QImode move
	R1=LC33	// QImode move
	[SP--]=R1	// QImode move
	call _FG_PutStr	// call with return value
	SP = SP + 4	//SP
.debug
	.dw '.stabn 0x44,0,323,',0,0
	.dd LM197-_main
	.dw 0x0d,0x0a
.code
LM197:
	R1=9	// QImode move
	[SP--]=R1	// QImode move
	call _PlayS480	// call without return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,324,',0,0
	.dd LM198-_main
	.dw 0x0d,0x0a
.code
LM198:
	pc=L57	// Indirect jump
L68:
.debug
	.dw '.stabn 0x44,0,326,',0,0
	.dd LM199-_main
	.dw 0x0d,0x0a
.code
LM199:
	pc=L57	// Indirect jump
.debug
	.dw '.stabn 0x44,0,327,',0,0
	.dd LM200-_main
	.dw 0x0d,0x0a
.code
LM200:
LBE8:
L57:
.debug
	.dw '.stabn 0x44,0,328,',0,0
	.dd LM201-_main
	.dw 0x0d,0x0a
.code
LM201:
	R1=BP	// QImode move
	R2=BP+15
	R1=R2	// QImode move
	R2=R2+24
	R4=R2	// QImode move
	R3=[R4]	// QImode move
	R1=R3	// QImode move
	CMP R1,9	// QImode compare
	NSJA L81	//QImode GTU
	R2=L82	// QImode move
	R1 = R1 + R2	//addqi3
	R2=R1	// QImode move
	R1=[R2]	// QImode move
	pc=R1	// tablejump
.text
L82:
	.dw L71
	.dw L72
	.dw L73
	.dw L74
	.dw L75
	.dw L76
	.dw L77
	.dw L78
	.dw L79
	.dw L80
.code
.debug
	.dw '.stabn 0x44,0,330,',0,0
	.dd LM202-_main
	.dw 0x0d,0x0a
.code
LM202:
LBB9:
L71:
.debug
	.dw '.stabn 0x44,0,331,',0,0
	.dd LM203-_main
	.dw 0x0d,0x0a
.code
LM203:
	R1=20	// QImode move
	[SP--]=R1	// QImode move
	R1=60	// QImode move
	[SP--]=R1	// QImode move
	R1=3	// QImode move
	[SP--]=R1	// QImode move
	R1=LC34	// QImode move
	[SP--]=R1	// QImode move
	call _FG_PutStr	// call with return value
	SP = SP + 4	//SP
.debug
	.dw '.stabn 0x44,0,332,',0,0
	.dd LM204-_main
	.dw 0x0d,0x0a
.code
LM204:
	R1=0	// QImode move
	[SP--]=R1	// QImode move
	call _PlayS480	// call without return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,333,',0,0
	.dd LM205-_main
	.dw 0x0d,0x0a
.code
LM205:
	pc=L70	// Indirect jump
L72:
.debug
	.dw '.stabn 0x44,0,335,',0,0
	.dd LM206-_main
	.dw 0x0d,0x0a
.code
LM206:
	R1=20	// QImode move
	[SP--]=R1	// QImode move
	R1=60	// QImode move
	[SP--]=R1	// QImode move
	R1=3	// QImode move
	[SP--]=R1	// QImode move
	R1=LC35	// QImode move
	[SP--]=R1	// QImode move
	call _FG_PutStr	// call with return value
	SP = SP + 4	//SP
.debug
	.dw '.stabn 0x44,0,336,',0,0
	.dd LM207-_main
	.dw 0x0d,0x0a
.code
LM207:
	R1=1	// QImode move
	[SP--]=R1	// QImode move
	call _PlayS480	// call without return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,337,',0,0
	.dd LM208-_main
	.dw 0x0d,0x0a
.code
LM208:
	pc=L70	// Indirect jump
L73:
.debug
	.dw '.stabn 0x44,0,339,',0,0
	.dd LM209-_main
	.dw 0x0d,0x0a
.code
LM209:
	R1=20	// QImode move
	[SP--]=R1	// QImode move
	R1=60	// QImode move
	[SP--]=R1	// QImode move
	R1=3	// QImode move
	[SP--]=R1	// QImode move
	R1=LC36	// QImode move
	[SP--]=R1	// QImode move
	call _FG_PutStr	// call with return value
	SP = SP + 4	//SP
.debug
	.dw '.stabn 0x44,0,340,',0,0
	.dd LM210-_main
	.dw 0x0d,0x0a
.code
LM210:
	R1=2	// QImode move
	[SP--]=R1	// QImode move
	call _PlayS480	// call without return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,341,',0,0
	.dd LM211-_main
	.dw 0x0d,0x0a
.code
LM211:
	pc=L70	// Indirect jump
L74:
.debug
	.dw '.stabn 0x44,0,343,',0,0
	.dd LM212-_main
	.dw 0x0d,0x0a
.code
LM212:
	R1=20	// QImode move
	[SP--]=R1	// QImode move
	R1=60	// QImode move
	[SP--]=R1	// QImode move
	R1=3	// QImode move
	[SP--]=R1	// QImode move
	R1=LC37	// QImode move
	[SP--]=R1	// QImode move
	call _FG_PutStr	// call with return value
	SP = SP + 4	//SP
.debug
	.dw '.stabn 0x44,0,344,',0,0
	.dd LM213-_main
	.dw 0x0d,0x0a
.code
LM213:
	R1=3	// QImode move
	[SP--]=R1	// QImode move
	call _PlayS480	// call without return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,345,',0,0
	.dd LM214-_main
	.dw 0x0d,0x0a
.code
LM214:
	pc=L70	// Indirect jump
L75:
.debug
	.dw '.stabn 0x44,0,347,',0,0
	.dd LM215-_main
	.dw 0x0d,0x0a
.code
LM215:
	R1=20	// QImode move
	[SP--]=R1	// QImode move
	R1=60	// QImode move
	[SP--]=R1	// QImode move
	R1=3	// QImode move
	[SP--]=R1	// QImode move
	R1=LC38	// QImode move
	[SP--]=R1	// QImode move
	call _FG_PutStr	// call with return value
	SP = SP + 4	//SP
.debug
	.dw '.stabn 0x44,0,348,',0,0
	.dd LM216-_main
	.dw 0x0d,0x0a
.code
LM216:
	R1=4	// QImode move
	[SP--]=R1	// QImode move
	call _PlayS480	// call without return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,349,',0,0
	.dd LM217-_main
	.dw 0x0d,0x0a
.code
LM217:
	pc=L70	// Indirect jump
L76:
.debug
	.dw '.stabn 0x44,0,351,',0,0
	.dd LM218-_main
	.dw 0x0d,0x0a
.code
LM218:
	R1=20	// QImode move
	[SP--]=R1	// QImode move
	R1=60	// QImode move
	[SP--]=R1	// QImode move
	R1=3	// QImode move
	[SP--]=R1	// QImode move
	R1=LC39	// QImode move
	[SP--]=R1	// QImode move
	call _FG_PutStr	// call with return value
	SP = SP + 4	//SP
.debug
	.dw '.stabn 0x44,0,352,',0,0
	.dd LM219-_main
	.dw 0x0d,0x0a
.code
LM219:
	R1=5	// QImode move
	[SP--]=R1	// QImode move
	call _PlayS480	// call without return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,353,',0,0
	.dd LM220-_main
	.dw 0x0d,0x0a
.code
LM220:
	pc=L70	// Indirect jump
L77:
.debug
	.dw '.stabn 0x44,0,355,',0,0
	.dd LM221-_main
	.dw 0x0d,0x0a
.code
LM221:
	R1=20	// QImode move
	[SP--]=R1	// QImode move
	R1=60	// QImode move
	[SP--]=R1	// QImode move
	R1=3	// QImode move
	[SP--]=R1	// QImode move
	R1=LC40	// QImode move
	[SP--]=R1	// QImode move
	call _FG_PutStr	// call with return value
	SP = SP + 4	//SP
.debug
	.dw '.stabn 0x44,0,356,',0,0
	.dd LM222-_main
	.dw 0x0d,0x0a
.code
LM222:
	R1=6	// QImode move
	[SP--]=R1	// QImode move
	call _PlayS480	// call without return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,357,',0,0
	.dd LM223-_main
	.dw 0x0d,0x0a
.code
LM223:
	pc=L70	// Indirect jump
L78:
.debug
	.dw '.stabn 0x44,0,359,',0,0
	.dd LM224-_main
	.dw 0x0d,0x0a
.code
LM224:
	R1=20	// QImode move
	[SP--]=R1	// QImode move
	R1=60	// QImode move
	[SP--]=R1	// QImode move
	R1=3	// QImode move
	[SP--]=R1	// QImode move
	R1=LC41	// QImode move
	[SP--]=R1	// QImode move
	call _FG_PutStr	// call with return value
	SP = SP + 4	//SP
.debug
	.dw '.stabn 0x44,0,360,',0,0
	.dd LM225-_main
	.dw 0x0d,0x0a
.code
LM225:
	R1=7	// QImode move
	[SP--]=R1	// QImode move
	call _PlayS480	// call without return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,361,',0,0
	.dd LM226-_main
	.dw 0x0d,0x0a
.code
LM226:
	pc=L70	// Indirect jump
L79:
.debug
	.dw '.stabn 0x44,0,363,',0,0
	.dd LM227-_main
	.dw 0x0d,0x0a
.code
LM227:
	R1=20	// QImode move
	[SP--]=R1	// QImode move
	R1=60	// QImode move
	[SP--]=R1	// QImode move
	R1=3	// QImode move
	[SP--]=R1	// QImode move
	R1=LC42	// QImode move
	[SP--]=R1	// QImode move
	call _FG_PutStr	// call with return value
	SP = SP + 4	//SP
.debug
	.dw '.stabn 0x44,0,364,',0,0
	.dd LM228-_main
	.dw 0x0d,0x0a
.code
LM228:
	R1=8	// QImode move
	[SP--]=R1	// QImode move
	call _PlayS480	// call without return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,365,',0,0
	.dd LM229-_main
	.dw 0x0d,0x0a
.code
LM229:
	pc=L70	// Indirect jump
L80:
.debug
	.dw '.stabn 0x44,0,367,',0,0
	.dd LM230-_main
	.dw 0x0d,0x0a
.code
LM230:
	R1=20	// QImode move
	[SP--]=R1	// QImode move
	R1=60	// QImode move
	[SP--]=R1	// QImode move
	R1=3	// QImode move
	[SP--]=R1	// QImode move
	R1=LC43	// QImode move
	[SP--]=R1	// QImode move
	call _FG_PutStr	// call with return value
	SP = SP + 4	//SP
.debug
	.dw '.stabn 0x44,0,368,',0,0
	.dd LM231-_main
	.dw 0x0d,0x0a
.code
LM231:
	R1=9	// QImode move
	[SP--]=R1	// QImode move
	call _PlayS480	// call without return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,369,',0,0
	.dd LM232-_main
	.dw 0x0d,0x0a
.code
LM232:
	pc=L70	// Indirect jump
L81:
.debug
	.dw '.stabn 0x44,0,371,',0,0
	.dd LM233-_main
	.dw 0x0d,0x0a
.code
LM233:
	pc=L70	// Indirect jump
.debug
	.dw '.stabn 0x44,0,372,',0,0
	.dd LM234-_main
	.dw 0x0d,0x0a
.code
LM234:
LBE9:
L70:
.debug
	.dw '.stabn 0x44,0,373,',0,0
	.dd LM235-_main
	.dw 0x0d,0x0a
.code
LM235:
	R1=1	// QImode move
	[SP--]=R1	// QImode move
	R1=1	// QImode move
	[SP--]=R1	// QImode move
	R1=1	// QImode move
	[SP--]=R1	// QImode move
	R1=0	// QImode move
	[SP--]=R1	// QImode move
	R1=0	// QImode move
	[SP--]=R1	// QImode move
	call _Set_IOA_Bit	// call with return value
	SP = SP + 5	//SP
.debug
	.dw '.stabn 0x44,0,375,',0,0
	.dd LM236-_main
	.dw 0x0d,0x0a
.code
LM236:
LBE4:
L23:
L21:
.debug
	.dw '.stabn 0x44,0,378,',0,0
	.dd LM237-_main
	.dw 0x0d,0x0a
.code
LM237:
LBE3:
	pc=L3	// Indirect jump
L4:
.debug
	.dw '.stabn 0x44,0,381,',0,0
	.dd LM238-_main
	.dw 0x0d,0x0a
.code
LM238:
LBE2:
.debug
	.dw '.stabn 0x44,0,381,',0,0
	.dd LM239-_main
	.dw 0x0d,0x0a
.code
LM239:
L2:

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

.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB2-_main
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabs "i:1",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "j:1",128,0,0,1',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "k:1",128,0,0,2',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "iRei:1",128,0,0,3',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "iRej:1",128,0,0,4',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "m:1",128,0,0,5',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "n:1",128,0,0,6',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "fVolVal:12",128,0,0,7',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "uiVolFlag:1",128,0,0,9',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "uiVolFlagHow:1",128,0,0,10',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "uiVolFlagOne:1",128,0,0,11',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "uiData:4",128,0,0,12',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "liDataVol:3",128,0,0,13',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "VolValude:20",128,0,0,15',0x0d,0x0a
.CODE
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB3-_main
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB4-_main
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB5-_main
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE5-_main
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB6-_main
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE6-_main
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB7-_main
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE7-_main
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB8-_main
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE8-_main
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB9-_main
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE9-_main
	.dw 0x0d,0x0a
.code
.debug
	.dw '.s

⌨️ 快捷键说明

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