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

📄 main.asm

📁 此代码是凌阳61单片机上的程序——上电自检程序
💻 ASM
📖 第 1 页 / 共 2 页
字号:
// GCC for SUNPLUS u'nSP version 1.0.21-3
// Command: C:\PROGRA~1\Sunplus\UNSPID~1.0\cc1.exe C:\DOCUME~1\hongyan\LOCALS~1\Temp\ccQXaaaa.i -fkeep-inline-functions -quiet -dumpbase main.c -mglobal-var-iram -gstabs -o .\Debug/main.asm
	.external __sn_func_ptr_sec

// gcc2_compiled.:

.debug
	.dw '.stabs "I:/1disktest/EVB061Test-KEY/",0x64,0,3,',0,0,offset Ltext0,seg Ltext0,0x0d,0x0a
.code
.debug
	.dw '.stabs "I:/1disktest/EVB061Test-KEY/main.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
.debug
	.dw '.stabs "Key:G4",32,0,0,',0,0,offset _Key,seg _Key,0x0d,0x0a
.CODE
.debug
	.dw '.stabs "INTflag:G11",32,0,0,',0,0,offset _INTflag,seg _INTflag,0x0d,0x0a
.CODE
.debug
	.dw '.stabs "sum:G4",32,0,0,',0,0,offset _sum,seg _sum,0x0d,0x0a
.CODE
.debug
	.dw '.stabs "FailTimes:G4",32,0,0,',0,0,offset _FailTimes,seg _FailTimes,0x0d,0x0a
.CODE
.code
.debug
	.dw '.stabs "playS480:F19",36,0,0,',0,0,offset _playS480,seg _playS480,0x0d,0x0a
.CODE
.public _playS480
_playS480:	.proc
.debug
	.dw '.stabn 0x44,0,29,',0,0
	.dd LM1-_playS480
	.dw 0x0d,0x0a
.code
LM1:
	// 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,30,',0,0
	.dd LM2-_playS480
	.dw 0x0d,0x0a
.code
LM2:
LBB2:
	R1=1	// QImode move
	[SP--]=R1	// QImode move
	call _SACM_S480_Initial	// call with return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,31,',0,0
	.dd LM3-_playS480
	.dw 0x0d,0x0a
.code
LM3:
	R1=3	// QImode move
	[SP--]=R1	// QImode move
	R1=3	// QImode move
	[SP--]=R1	// QImode move
	R2=[BP]	// QImode move
	R1=[R2]	// QImode move
	[SP--]=R1	// QImode move
	call _SACM_S480_Play	// call without return value
	SP = SP + 3	//SP
.debug
	.dw '.stabn 0x44,0,32,',0,0
	.dd LM4-_playS480
	.dw 0x0d,0x0a
.code
LM4:
L3:
	call _SACM_S480_Status	// call with return value
	R2=R1&1
	CMP R2,0	// QImode test
	NSJNZ L5	//QImode NE
	pc=L4	// Indirect jump
L5:
.debug
	.dw '.stabn 0x44,0,34,',0,0
	.dd LM5-_playS480
	.dw 0x0d,0x0a
.code
LM5:
LBB3:
	call _Clear_WatchDog	// call with return value
.debug
	.dw '.stabn 0x44,0,35,',0,0
	.dd LM6-_playS480
	.dw 0x0d,0x0a
.code
LM6:
	call _SACM_S480_ServiceLoop	// call without return value
.debug
	.dw '.stabn 0x44,0,36,',0,0
	.dd LM7-_playS480
	.dw 0x0d,0x0a
.code
LM7:
LBE3:
	pc=L3	// Indirect jump
L4:
.debug
	.dw '.stabn 0x44,0,37,',0,0
	.dd LM8-_playS480
	.dw 0x0d,0x0a
.code
LM8:
	call _SACM_S480_Stop	// call without return value
.debug
	.dw '.stabn 0x44,0,38,',0,0
	.dd LM9-_playS480
	.dw 0x0d,0x0a
.code
LM9:
LBE2:
.debug
	.dw '.stabn 0x44,0,38,',0,0
	.dd LM10-_playS480
	.dw 0x0d,0x0a
.code
LM10:
L2:

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

.debug
	.dw '.stabs "num:p11",160,0,0,4',0x0d,0x0a
.CODE
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB2-_playS480
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB3-_playS480
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE3-_playS480
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE2-_playS480
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabf ',0,0
	.dd LME1-_playS480
	.dw 0x0d,0x0a
.code
LME1:
.code
.debug
	.dw '.stabs "delay2s:F19",36,0,0,',0,0,offset _delay2s,seg _delay2s,0x0d,0x0a
.CODE
.public _delay2s
_delay2s:	.proc
.debug
	.dw '.stabn 0x44,0,41,',0,0
	.dd LM11-_delay2s
	.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,42,',0,0
	.dd LM12-_delay2s
	.dw 0x0d,0x0a
.code
LM12:
LBB4:
	call _RunTime2Hz	// call with return value
.debug
	.dw '.stabn 0x44,0,43,',0,0
	.dd LM13-_delay2s
	.dw 0x0d,0x0a
.code
LM13:
	R1=0	// QImode move
	[_FailTimes]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,44,',0,0
	.dd LM14-_delay2s
	.dw 0x0d,0x0a
.code
LM14:
L8:
	R1=[_INTflag]	// QImode move
	CMP R1,0	// QImode test
	NSJZ L10	//QImode EQ
	pc=L9	// Indirect jump
L10:
.debug
	.dw '.stabn 0x44,0,46,',0,0
	.dd LM15-_delay2s
	.dw 0x0d,0x0a
.code
LM15:
LBB5:
	call _Clear_WatchDog	// call with return value
.debug
	.dw '.stabn 0x44,0,47,',0,0
	.dd LM16-_delay2s
	.dw 0x0d,0x0a
.code
LM16:
LBE5:
	pc=L8	// Indirect jump
L9:
.debug
	.dw '.stabn 0x44,0,48,',0,0
	.dd LM17-_delay2s
	.dw 0x0d,0x0a
.code
LM17:
	R1=0	// QImode move
	[_INTflag]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,49,',0,0
	.dd LM18-_delay2s
	.dw 0x0d,0x0a
.code
LM18:
	call _OffTime2Hz	// call with return value
.debug
	.dw '.stabn 0x44,0,50,',0,0
	.dd LM19-_delay2s
	.dw 0x0d,0x0a
.code
LM19:
LBE4:
.debug
	.dw '.stabn 0x44,0,50,',0,0
	.dd LM20-_delay2s
	.dw 0x0d,0x0a
.code
LM20:
L7:

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

.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB4-_delay2s
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB5-_delay2s
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE5-_delay2s
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE4-_delay2s
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabf ',0,0
	.dd LME2-_delay2s
	.dw 0x0d,0x0a
.code
LME2:
.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,57,',0,0
	.dd LM21-_main
	.dw 0x0d,0x0a
.code
LM21:
	// 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,59,',0,0
	.dd LM22-_main
	.dw 0x0d,0x0a
.code
LM22:
LBB6:
	R1=0	// QImode move
	[_FailTimes]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,60,',0,0
	.dd LM23-_main
	.dw 0x0d,0x0a
.code
LM23:
	R1=0	// QImode move
	[_sum]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,61,',0,0
	.dd LM24-_main
	.dw 0x0d,0x0a
.code
LM24:
	R1=0	// QImode move
	[_INTflag]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,62,',0,0
	.dd LM25-_main
	.dw 0x0d,0x0a
.code
LM25:
	call _Clear_WatchDog	// call with return value
.debug
	.dw '.stabn 0x44,0,64,',0,0
	.dd LM26-_main
	.dw 0x0d,0x0a
.code
LM26:
	R1=0	// QImode move
	[SP--]=R1	// QImode move
	call _playS480	// call without return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,67,',0,0
	.dd LM27-_main
	.dw 0x0d,0x0a
.code
LM27:
L13:
	call _IOTest	// call with return value
	CMP R1,0	// QImode test
	NSJZ L15	//QImode EQ

⌨️ 快捷键说明

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