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

📄 main.asm

📁 C语言学习的一个不错的资料
💻 ASM
📖 第 1 页 / 共 4 页
字号:
// GCC for SUNPLUS u'nSP version 1.0.10
// Command: E:\PROGRA~1\Sunplus\UNSPID~3\IDE180\cc1.exe C:\DOCUME~1\李华丽.DOMAIN\LOCALS~1\Temp\ccIxaaaa.i -fkeep-inline-functions -quiet -dumpbase main.c -gstabs -o .\Debug/main.asm
// gcc2_compiled.:

.stabs "F:\\电子竞赛\\C语言应用篇\\Source Code\\chapter10 Intergraded example\\SIO_UART/", 0x64, 0, 3, Ltext0
.stabs "F:/电子竞赛/C语言应用篇/Source Code/chapter10 Intergraded example/SIO_UART/main.c", 0x64, 0, 3, Ltext0
.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 "BaseType:T20=eUartOpen:0,UartClose:1,;",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "SubStatus:T21=eStop:0,Record:1,Play:2,\\",128,0,0,0',0x0d,0x0a
	.DW '.stabs "Download:3,Upload:4,Receive_data:5,\\",128,0,0,0',0x0d,0x0a
	.DW '.stabs "RePlay_All:6,RePlay:7,;",128,0,0,0',0x0d,0x0a
.CODE
.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,38,',0,0
	.dd LM1-_main
	.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,39,',0,0
	.dd LM2-_main
	.dw 0x0d,0x0a
.code
LM2:
LBB2:
	R1=1	// QImode move
	[_BaseType]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,40,',0,0
	.dd LM3-_main
	.dw 0x0d,0x0a
.code
LM3:
	R1=0	// QImode move
	[_SubStatus]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,41,',0,0
	.dd LM4-_main
	.dw 0x0d,0x0a
.code
LM4:
	R1=1	// QImode move
	[_Segment]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,42,',0,0
	.dd LM5-_main
	.dw 0x0d,0x0a
.code
LM5:
	R1=0	// HImode immediate to register move
	R2=0
	[_Addr]=R1	// HImode [Label]=RS
	[_Addr+1]=R2
.debug
	.dw '.stabn 0x44,0,43,',0,0
	.dd LM6-_main
	.dw 0x0d,0x0a
.code
LM6:
	R1=255	// QImode move
	[_Keycode]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,44,',0,0
	.dd LM7-_main
	.dw 0x0d,0x0a
.code
LM7:
	R1=0	// QImode move
	[_i]=R1	// QImode move
	R1=(-4096)	// QImode move
	[_internal_addr]=R1	// QImode move
L3:
	R1=[_i]	// QImode move
	CMP R1,20	// QImode compare
	JA L10	// QImode LEU
	PC=L6
L10:
	pc=L4	// jump
L6:
.debug
	.dw '.stabn 0x44,0,45,',0,0
	.dd LM8-_main
	.dw 0x0d,0x0a
.code
LM8:
	R1=[_internal_addr]	// QImode move
	[SP--]=R1	// QImode move
	call _SP_ReadWord	// call with return value
	SP=SP+1
	R2=[_i]	// QImode move
	R3=R2	// QImode move
	R2=R3 lsl 1
	R4=_Buffer	// QImode move
	R3=R4	// QImode move
	R3+=R2	// addqi3_r0r
	R2=0	// sign extend
	R1=R1
	jpl 1
	R2=-1
	R4=R3	// QImode move
	[R4++]=R1	// [RD]=RS HImode, RD!=RS+1
	[R4--]=R2
.debug
	.dw '.stabn 0x44,0,44,',0,0
	.dd LM9-_main
	.dw 0x0d,0x0a
.code
LM9:
L5:
	R1=[_i]	// QImode move
	R2=1	// QImode move
	[_i]=R1+R2
	R1=[_internal_addr]	// QImode move
	R2=1	// QImode move
	[_internal_addr]=R1+R2
	pc=L3	// jump
L4:
.debug
	.dw '.stabn 0x44,0,47,',0,0
	.dd LM10-_main
	.dw 0x0d,0x0a
.code
LM10:
	call _System_Initial	// call with return value
.debug
	.dw '.stabn 0x44,0,49,',0,0
	.dd LM11-_main
	.dw 0x0d,0x0a
.code
LM11:
	R1=0	// QImode move
	[SP--]=R1	// QImode move
	call _SACM_DVR_Initial	// call with return value
	SP=SP+1
.debug
	.dw '.stabn 0x44,0,50,',0,0
	.dd LM12-_main
	.dw 0x0d,0x0a
.code
LM12:
L7:
	pc=L9	// jump
	pc=L8	// jump
L9:
.debug
	.dw '.stabn 0x44,0,52,',0,0
	.dd LM13-_main
	.dw 0x0d,0x0a
.code
LM13:
LBB3:
	call _F_Key_Scan	// call with return value
	[_Keycode]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,53,',0,0
	.dd LM14-_main
	.dw 0x0d,0x0a
.code
LM14:
	call _According_to_Keycode	// call without return value
.debug
	.dw '.stabn 0x44,0,54,',0,0
	.dd LM15-_main
	.dw 0x0d,0x0a
.code
LM15:
	call _According_to_SubStatus	// call without return value
.debug
	.dw '.stabn 0x44,0,55,',0,0
	.dd LM16-_main
	.dw 0x0d,0x0a
.code
LM16:
LBE3:
	pc=L7	// jump
L8:
.debug
	.dw '.stabn 0x44,0,56,',0,0
	.dd LM17-_main
	.dw 0x0d,0x0a
.code
LM17:
	R1=0	// QImode move
	pc=L2	// jump
.debug
	.dw '.stabn 0x44,0,57,',0,0
	.dd LM18-_main
	.dw 0x0d,0x0a
.code
LM18:
LBE2:
.debug
	.dw '.stabn 0x44,0,57,',0,0
	.dd LM19-_main
	.dw 0x0d,0x0a
.code
LM19:
L2:

	sp+=1
	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 '.stabn 0xc0,0,0,',0,0
	.dd LBB3-_main
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE3-_main
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE2-_main
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabf ',0,0
	.dd LME1-_main
	.dw 0x0d,0x0a
.code
LME1:
.code
.debug
	.dw '.stabs "Modify_Index:F19",36,0,0,',0,0,offset _Modify_Index,seg _Modify_Index,0x0d,0x0a
.CODE
.public _Modify_Index
_Modify_Index:	.proc
.debug
	.dw '.stabn 0x44,0,70,',0,0
	.dd LM20-_Modify_Index
	.dw 0x0d,0x0a
.code
LM20:
	// 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,71,',0,0
	.dd LM21-_Modify_Index
	.dw 0x0d,0x0a
.code
LM21:
	R1=0	// QImode move
	[_i]=R1	// QImode move
	R1=(-4096)	// QImode move
	[_internal_addr]=R1	// QImode move
L12:
	R1=[_i]	// QImode move
	CMP R1,20	// QImode compare
	JA L25	// QImode LEU
	PC=L15
L25:
	pc=L13	// jump
L15:
.debug
	.dw '.stabn 0x44,0,72,',0,0
	.dd LM22-_Modify_Index
	.dw 0x0d,0x0a
.code
LM22:
	R1=[_internal_addr]	// QImode move
	[SP--]=R1	// QImode move
	call _SP_ReadWord	// call with return value
	SP=SP+1
	R2=[_i]	// QImode move
	R3=R2	// QImode move
	R2=R3 lsl 1
	R4=_Buffer	// QImode move
	R3=R4	// QImode move
	R3+=R2	// addqi3_r0r
	R2=0	// sign extend
	R1=R1
	jpl 1
	R2=-1
	R4=R3	// QImode move
	[R4++]=R1	// [RD]=RS HImode, RD!=RS+1
	[R4--]=R2
.debug
	.dw '.stabn 0x44,0,71,',0,0
	.dd LM23-_Modify_Index
	.dw 0x0d,0x0a
.code
LM23:
L14:
	R1=[_i]	// QImode move
	R2=1	// QImode move
	[_i]=R1+R2
	R1=[_internal_addr]	// QImode move
	R2=1	// QImode move
	[_internal_addr]=R1+R2
	pc=L12	// jump
L13:
.debug
	.dw '.stabn 0x44,0,73,',0,0
	.dd LM24-_Modify_Index
	.dw 0x0d,0x0a
.code
LM24:
	R1=[_Buffer]	// HImode RD=[Label]
	R2=[_Buffer+1]
	R3=R1+1	// HImode RD=RS+#IMM16
	R4=R2+0, Carry
	[_Buffer]=R3	// HImode [Label]=RS
	[_Buffer+1]=R4
.debug
	.dw '.stabn 0x44,0,74,',0,0
	.dd LM25-_Modify_Index
	.dw 0x0d,0x0a
.code
LM25:
	R3=[_Buffer]	// HImode RD=[Label]
	R4=[_Buffer+1]
	R1=R3	// HImode register to register move
	R2=R4
	R3=1	// QImode move
	[SP--]=R3	// QImode move
	push R1,R2 to [sp]	// pushhi
	call __lshiu2	// call with return value
	SP=SP+3
	R3=R1	// QImode move
	[_Ret]=R3	// QImode move
.debug
	.dw '.stabn 0x44,0,75,',0,0
	.dd LM26-_Modify_Index
	.dw 0x0d,0x0a
.code
LM26:
	R1=[_Ret]	// QImode move
	R2=R1	// QImode move
	R1=R2 lsl 1
	R3=_Buffer	// QImode move
	R2=R3	// QImode move
	R2+=R1	// addqi3_r0r
	R3=[_Addr]	// HImode RD=[Label]
	R4=[_Addr+1]
	R1=R2	// QImode move
	[R1++]=R3	// [RD]=RS HImode, RD!=RS+1
	[R1--]=R4
.debug
	.dw '.stabn 0x44,0,76,',0,0
	.dd LM27-_Modify_Index
	.dw 0x0d,0x0a
.code
LM27:
	R1=0	// HImode immediate to register move
	R2=0
	[_Tem]=R1	// HImode [Label]=RS
	[_Tem+1]=R2
.debug
	.dw '.stabn 0x44,0,77,',0,0
	.dd LM28-_Modify_Index
	.dw 0x0d,0x0a
.code
LM28:
	R1=1	// QImode move
	[_i]=R1	// QImode move
L16:
	R1=[_i]	// QImode move
	CMP R1,255	// QImode compare
	JNA L26	// QImode GTU
	PC=L20
L26:
	R1=[_Tem]	// HImode RD=[Label]
	R2=[_Tem+1]
	R3=[_Addr]	// HImode RD=[Label]
	R4=[_Addr+1]
	CMP R2,R4	// HImode compare
	JB  L27	// HImode LTU
	JNZ L28
	CMP R1,R3
	JNB L28
L27:
	PC=L19
L28:
	R1=[_Tem]	// HImode RD=[Label]
	R2=[_Tem+1]
	R3=[_Addr]	// HImode RD=[Label]
	R4=[_Addr+1]
	CMP R2,R4	// HImode compare
	JNZ L30	// HImode EQ
	CMP R1,R3
	JNZ L30
	PC=L19
L30:
	pc=L20	// jump
L20:
	pc=L17	// jump
L19:
.debug
	.dw '.stabn 0x44,0,78,',0,0
	.dd LM29-_Modify_Index
	.dw 0x0d,0x0a
.code
LM29:
	R1=[_i]	// QImode move
	R2=2048	// QImode move
	mr=R1*R2	// r3=R1*R2 16bit=16bit*16bit
	R1=R3
	R2=0
	[_Tem]=R1	// HImode [Label]=RS
	[_Tem+1]=R2
.debug
	.dw '.stabn 0x44,0,77,',0,0
	.dd LM30-_Modify_Index
	.dw 0x0d,0x0a
.code
LM30:
L18:
	R1=[_i]	// QImode move
	R2=1	// QImode move
	[_i]=R1+R2
	pc=L16	// jump
L17:
.debug
	.dw '.stabn 0x44,0,79,',0,0
	.dd LM31-_Modify_Index
	.dw 0x0d,0x0a
.code
LM31:
	R2=[_Ret]	// QImode move
	R1=R2+1
	R2=R1	// QImode move
	R1=R2 lsl 1
	R3=_Buffer	// QImode move
	R2=R3	// QImode move
	R2+=R1	// addqi3_r0r
	R3=[_Tem]	// HImode RD=[Label]
	R4=[_Tem+1]
	R1=R2	// QImode move
	[R1++]=R3	// [RD]=RS HImode, RD!=RS+1
	[R1--]=R4
.debug
	.dw '.stabn 0x44,0,80,',0,0
	.dd LM32-_Modify_Index
	.dw 0x0d,0x0a
.code
LM32:
	R1=(-4096)	// QImode move
	[SP--]=R1	// QImode move
	call _SP_PageErase	// call with return value
	SP=SP+1
.debug
	.dw '.stabn 0x44,0,81,',0,0
	.dd LM33-_Modify_Index
	.dw 0x0d,0x0a
.code
LM33:
	R1=0	// QImode move
	[_i]=R1	// QImode move
	R1=(-4096)	// QImode move
	[_internal_addr]=R1	// QImode move
L21:
	R1=[_i]	// QImode move
	CMP R1,20	// QImode compare
	JA L31	// QImode LEU
	PC=L24
L31:
	pc=L22	// jump
L24:
.debug
	.dw '.stabn 0x44,0,82,',0,0
	.dd LM34-_Modify_Index
	.dw 0x0d,0x0a
.code
LM34:
	R1=[_i]	// QImode move
	R2=R1	// QImode move
	R1=R2 lsl 1
	R3=_Buffer	// QImode move
	R2=R3	// QImode move
	R2+=R1	// addqi3_r0r
	R1=R2	// QImode move
	R3=[R1++]	// RD=[RS] HImode, RD!=RS
	R4=[R1--]
	push R3,R4 to [sp]	// pushhi
	R1=[_internal_addr]	// QImode move
	[SP--]=R1	// QImode move
	call _SP_WriteWord	// call with return value
	SP=SP+3
.debug
	.dw '.stabn 0x44,0,81,',0,0
	.dd LM35-_Modify_Index
	.dw 0x0d,0x0a
.code
LM35:
L23:
	R1=[_i]	// QImode move
	R2=1	// QImode move
	[_i]=R1+R2
	R1=[_internal_addr]	// QImode move
	R2=1	// QImode move
	[_internal_addr]=R1+R2
	pc=L21	// jump
L22:
.debug
	.dw '.stabn 0x44,0,83,',0,0
	.dd LM36-_Modify_Index
	.dw 0x0d,0x0a
.code
LM36:
.debug
	.dw '.stabn 0x44,0,83,',0,0
	.dd LM37-_Modify_Index
	.dw 0x0d,0x0a
.code
LM37:
L11:

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

.debug
	.dw '.stabf ',0,0
	.dd LME2-_Modify_Index
	.dw 0x0d,0x0a
.code
LME2:
.code
.debug
	.dw '.stabs "DVR_Stop:F19",36,0,0,',0,0,offset _DVR_Stop,seg _DVR_Stop,0x0d,0x0a
.CODE
.public _DVR_Stop
_DVR_Stop:	.proc
.debug
	.dw '.stabn 0x44,0,95,',0,0
	.dd LM38-_DVR_Stop
	.dw 0x0d,0x0a
.code
LM38:
	// 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,96,',0,0
	.dd LM39-_DVR_Stop
	.dw 0x0d,0x0a
.code
LM39:
LBB4:
	call _SACM_DVR_Stop	// call without return value
.debug
	.dw '.stabn 0x44,0,97,',0,0
	.dd LM40-_DVR_Stop
	.dw 0x0d,0x0a
.code
LM40:
	call _SP_RampUpDAC1	// call with return value
.debug
	.dw '.stabn 0x44,0,98,',0,0
	.dd LM41-_DVR_Stop
	.dw 0x0d,0x0a
.code
LM41:
	call _SP_RampUpDAC2	// call with return value
.debug
	.dw '.stabn 0x44,0,99,',0,0
	.dd LM42-_DVR_Stop
	.dw 0x0d,0x0a
.code
LM42:
LBE4:
.debug
	.dw '.stabn 0x44,0,99,',0,0
	.dd LM43-_DVR_Stop
	.dw 0x0d,0x0a
.code
LM43:
L32:

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

.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB4-_DVR_Stop
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE4-_DVR_Stop
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabf ',0,0
	.dd LME3-_DVR_Stop
	.dw 0x0d,0x0a
.code
LME3:
.code
.debug
	.dw '.stabs "Send_QueueData_to_Sflash:F19",36,0,0,',0,0,offset _Send_QueueData_to_Sflash,seg _Send_QueueData_to_Sflash,0x0d,0x0a
.CODE
.public _Send_QueueData_to_Sflash
_Send_QueueData_to_Sflash:	.proc
.debug
	.dw '.stabn 0x44,0,111,',0,0
	.dd LM44-_Send_QueueData_to_Sflash
	.dw 0x0d,0x0a
.code
LM44:
	// total=1, vars=1
	// frame_pointer_needed: 1
	push bp to [sp]
	sp-=1

⌨️ 快捷键说明

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