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

📄 main.asm

📁 此代码是凌阳61单片机上的程序——上电自检程序
💻 ASM
📖 第 1 页 / 共 2 页
字号:
	pc=L14	// Indirect jump
L15:
.debug
	.dw '.stabn 0x44,0,69,',0,0
	.dd LM28-_main
	.dw 0x0d,0x0a
.code
LM28:
	R1=1	// QImode move
	[SP--]=R1	// QImode move
	call _playS480	// call without return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,70,',0,0
	.dd LM29-_main
	.dw 0x0d,0x0a
.code
LM29:
	R1=[_FailTimes]	// QImode move
	R2=1	// QImode move
	[_FailTimes]=R1+R2  //addqi3_Qrr
.debug
	.dw '.stabn 0x44,0,71,',0,0
	.dd LM30-_main
	.dw 0x0d,0x0a
.code
LM30:
	R1=[_FailTimes]	// QImode move
	CMP R1,3	// QImode compare
	NSJNZ L16	//QImode NE
.debug
	.dw '.stabn 0x44,0,73,',0,0
	.dd LM31-_main
	.dw 0x0d,0x0a
.code
LM31:
	R1=0	// QImode move
	pc=L12	// Indirect jump
L16:
.debug
	.dw '.stabn 0x44,0,75,',0,0
	.dd LM32-_main
	.dw 0x0d,0x0a
.code
LM32:
	pc=L13	// Indirect jump
L14:
.debug
	.dw '.stabn 0x44,0,76,',0,0
	.dd LM33-_main
	.dw 0x0d,0x0a
.code
LM33:
	R1=2	// QImode move
	[SP--]=R1	// QImode move
	call _playS480	// call without return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,79,',0,0
	.dd LM34-_main
	.dw 0x0d,0x0a
.code
LM34:
	R1=0	// QImode move
	[SP--]=R1	// QImode move
	R1=0	// QImode move
	[SP--]=R1	// QImode move
	R1=0	// QImode move
	[SP--]=R1	// QImode move
	call _SP_Init_IOA	// call with return value
	SP = SP + 3	//SP
.debug
	.dw '.stabn 0x44,0,80,',0,0
	.dd LM35-_main
	.dw 0x0d,0x0a
.code
LM35:
	call _System_Initial	// call with return value
.debug
	.dw '.stabn 0x44,0,82,',0,0
	.dd LM36-_main
	.dw 0x0d,0x0a
.code
LM36:
L17:
	pc=L19	// Indirect jump
	pc=L18	// Indirect jump
L19:
.debug
	.dw '.stabn 0x44,0,84,',0,0
	.dd LM37-_main
	.dw 0x0d,0x0a
.code
LM37:
LBB7:
	call _System_Initial	// call with return value
.debug
	.dw '.stabn 0x44,0,85,',0,0
	.dd LM38-_main
	.dw 0x0d,0x0a
.code
LM38:
	R1=0	// QImode move
	[SP--]=R1	// QImode move
	R1=0	// QImode move
	[SP--]=R1	// QImode move
	R1=0	// QImode move
	[SP--]=R1	// QImode move
	call _SP_Init_IOB	// call with return value
	SP = SP + 3	//SP
.debug
	.dw '.stabn 0x44,0,86,',0,0
	.dd LM39-_main
	.dw 0x0d,0x0a
.code
LM39:
	call _SP_GetCh	// call with return value
	[_Key]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,87,',0,0
	.dd LM40-_main
	.dw 0x0d,0x0a
.code
LM40:
	R1=[_Key]	// QImode move
	CMP R1,2	// QImode compare
	NSJZ L25	//QImode EQ
	CMP R1,2	// QImode compare
	NSJA L32	//QImode GTU
	CMP R1,1	// QImode compare
	NSJZ L21	//QImode EQ
	pc=L30	// Indirect jump
L32:
	CMP R1,4	// QImode compare
	NSJZ L29	//QImode EQ
	pc=L30	// Indirect jump
.debug
	.dw '.stabn 0x44,0,89,',0,0
	.dd LM41-_main
	.dw 0x0d,0x0a
.code
LM41:
LBB8:
L21:
.debug
	.dw '.stabn 0x44,0,93,',0,0
	.dd LM42-_main
	.dw 0x0d,0x0a
.code
LM42:
L22:
	call _KeyWakeUp	// call with return value
	CMP R1,0	// QImode test
	NSJZ L24	//QImode EQ
	pc=L23	// Indirect jump
L24:
.debug
	.dw '.stabn 0x44,0,95,',0,0
	.dd LM43-_main
	.dw 0x0d,0x0a
.code
LM43:
	R1=4	// QImode move
	[SP--]=R1	// QImode move
	call _playS480	// call without return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,96,',0,0
	.dd LM44-_main
	.dw 0x0d,0x0a
.code
LM44:
	R1=8	// QImode move
	[SP--]=R1	// QImode move
	call _playS480	// call without return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,97,',0,0
	.dd LM45-_main
	.dw 0x0d,0x0a
.code
LM45:
	R1=0	// QImode move
	pc=L12	// Indirect jump
.debug
	.dw '.stabn 0x44,0,99,',0,0
	.dd LM46-_main
	.dw 0x0d,0x0a
.code
LM46:
	pc=L22	// Indirect jump
L23:
.debug
	.dw '.stabn 0x44,0,100,',0,0
	.dd LM47-_main
	.dw 0x0d,0x0a
.code
LM47:
	R1=4	// QImode move
	[SP--]=R1	// QImode move
	call _playS480	// call without return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,101,',0,0
	.dd LM48-_main
	.dw 0x0d,0x0a
.code
LM48:
	pc=L20	// Indirect jump
L25:
.debug
	.dw '.stabn 0x44,0,104,',0,0
	.dd LM49-_main
	.dw 0x0d,0x0a
.code
LM49:
	call _delay2s	// call without return value
.debug
	.dw '.stabn 0x44,0,105,',0,0
	.dd LM50-_main
	.dw 0x0d,0x0a
.code
LM50:
L26:
	call _AD_Line	// call with return value
	CMP R1,0	// QImode test
	NSJZ L28	//QImode EQ
	pc=L27	// Indirect jump
L28:
.debug
	.dw '.stabn 0x44,0,107,',0,0
	.dd LM51-_main
	.dw 0x0d,0x0a
.code
LM51:
	R1=3	// QImode move
	[SP--]=R1	// QImode move
	call _playS480	// call without return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,108,',0,0
	.dd LM52-_main
	.dw 0x0d,0x0a
.code
LM52:
	R1=8	// QImode move
	[SP--]=R1	// QImode move
	call _playS480	// call without return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,109,',0,0
	.dd LM53-_main
	.dw 0x0d,0x0a
.code
LM53:
	R1=0	// QImode move
	pc=L12	// Indirect jump
.debug
	.dw '.stabn 0x44,0,110,',0,0
	.dd LM54-_main
	.dw 0x0d,0x0a
.code
LM54:
	pc=L26	// Indirect jump
L27:
.debug
	.dw '.stabn 0x44,0,112,',0,0
	.dd LM55-_main
	.dw 0x0d,0x0a
.code
LM55:
	R1=9	// QImode move
	[SP--]=R1	// QImode move
	call _playS480	// call without return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,114,',0,0
	.dd LM56-_main
	.dw 0x0d,0x0a
.code
LM56:
	pc=L20	// Indirect jump
L29:
.debug
	.dw '.stabn 0x44,0,117,',0,0
	.dd LM57-_main
	.dw 0x0d,0x0a
.code
LM57:
	call _MICTEST	// call with return value
.debug
	.dw '.stabn 0x44,0,118,',0,0
	.dd LM58-_main
	.dw 0x0d,0x0a
.code
LM58:
	pc=L20	// Indirect jump
L30:
.debug
	.dw '.stabn 0x44,0,120,',0,0
	.dd LM59-_main
	.dw 0x0d,0x0a
.code
LM59:
	pc=L20	// Indirect jump
.debug
	.dw '.stabn 0x44,0,121,',0,0
	.dd LM60-_main
	.dw 0x0d,0x0a
.code
LM60:
LBE8:
L20:
.debug
	.dw '.stabn 0x44,0,122,',0,0
	.dd LM61-_main
	.dw 0x0d,0x0a
.code
LM61:
	call _System_ServiceLoop	// call with return value
.debug
	.dw '.stabn 0x44,0,123,',0,0
	.dd LM62-_main
	.dw 0x0d,0x0a
.code
LM62:
LBE7:
	pc=L17	// Indirect jump
L18:
.debug
	.dw '.stabn 0x44,0,124,',0,0
	.dd LM63-_main
	.dw 0x0d,0x0a
.code
LM63:
LBE6:
.debug
	.dw '.stabn 0x44,0,124,',0,0
	.dd LM64-_main
	.dw 0x0d,0x0a
.code
LM64:
L12:

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

.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB6-_main
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB7-_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 0xe0,0,0,',0,0
	.dd LBE7-_main
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE6-_main
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabf ',0,0
	.dd LME3-_main
	.dw 0x0d,0x0a
.code
LME3:
.iram
.public _Key
_Key:
	.dw 0
.iram
.public _INTflag
_INTflag:
	.dw 0
.iram
.public _sum
_sum:
	.dw 0
.iram
.public _FailTimes
_FailTimes:
	.dw 0
.external _System_ServiceLoop
.external _MICTEST
.external _AD_Line
.external _KeyWakeUp
.external _SP_GetCh
.external _SP_Init_IOB
.external _System_Initial
.external _SP_Init_IOA
.external _IOTest
.external _Clear_WatchDog
.external _OffTime2Hz
.external _RunTime2Hz
.external _SACM_S480_Stop
.external _SACM_S480_ServiceLoop
.external _SACM_S480_Status
.external _SACM_S480_Play
.external _SACM_S480_Initial
	.end

⌨️ 快捷键说明

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