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

📄 main.asm

📁 电子竞赛—具有语音功能的RCL测试仪
💻 ASM
📖 第 1 页 / 共 2 页
字号:
// 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\cccxaaaa.i -fkeep-inline-functions -quiet -dumpbase main.c -gstabs -o .\Debug/main.asm
// gcc2_compiled.:

.stabs "E:\\RCL-Test/", 0x64, 0, 3, Ltext0
.stabs "E:/RCL-Test/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 "g_fRx:G12",32,0,0,',0,0,offset _g_fRx,seg _g_fRx,0x0d,0x0a
.CODE
.public _g_fRx
.iram
_g_fRx:
	.dw 0x0000, 0x0000
.debug
	.dw '.stabs "g_fCx:G12",32,0,0,',0,0,offset _g_fCx,seg _g_fCx,0x0d,0x0a
.CODE
.public _g_fCx
.iram
_g_fCx:
	.dw 0x0000, 0x0000
.debug
	.dw '.stabs "g_fLx:G12",32,0,0,',0,0,offset _g_fLx,seg _g_fLx,0x0d,0x0a
.CODE
.public _g_fLx
.iram
_g_fLx:
	.dw 0x0000, 0x0000
.debug
	.dw '.stabs "g_ucIntFlag:G11",32,0,0,',0,0,offset _g_ucIntFlag,seg _g_ucIntFlag,0x0d,0x0a
.CODE
.public _g_ucIntFlag
.iram
_g_ucIntFlag:
	.dw 0
.debug
	.dw '.stabs "g_uiKey:G4",32,0,0,',0,0,offset _g_uiKey,seg _g_uiKey,0x0d,0x0a
.CODE
.public _g_uiKey
.iram
_g_uiKey:
	.dw 0
.debug
	.dw '.stabs "g_uifx:G4",32,0,0,',0,0,offset _g_uifx,seg _g_uifx,0x0d,0x0a
.CODE
.public _g_uifx
.iram
_g_uifx:
	.dw 0
.debug
	.dw '.stabs "g_uisum:G4",32,0,0,',0,0,offset _g_uisum,seg _g_uisum,0x0d,0x0a
.CODE
.public _g_uisum
.iram
_g_uisum:
	.dw 0
.debug
	.dw '.stabs "j:G4",32,0,0,',0,0,offset _j,seg _j,0x0d,0x0a
.CODE
.public _j
.iram
_j:
	.dw 0
.debug
	.dw '.stabs "i:G4",32,0,0,',0,0,offset _i,seg _i,0x0d,0x0a
.CODE
.public _i
.iram
_i:
	.dw 0
.debug
	.dw '.stabs "Lxsum:G4",32,0,0,',0,0,offset _Lxsum,seg _Lxsum,0x0d,0x0a
.CODE
.public _Lxsum
.iram
_Lxsum:
	.dw 0
.debug
	.dw '.stabs "LxFlag:G11",32,0,0,',0,0,offset _LxFlag,seg _LxFlag,0x0d,0x0a
.CODE
.public _LxFlag
.iram
_LxFlag:
	.dw 0
.debug
	.dw '.stabs "g_speechID:G4",32,0,0,',0,0,offset _g_speechID,seg _g_speechID,0x0d,0x0a
.CODE
.public _g_speechID
.iram
_g_speechID:
	.dw 0
.debug
	.dw '.stabs "g_speachIndex:G4",32,0,0,',0,0,offset _g_speachIndex,seg _g_speachIndex,0x0d,0x0a
.CODE
.public _g_speachIndex
.iram
_g_speachIndex:
	.dw 0
.debug
	.dw '.stabs "g_Speechary:G20=ar1;0;5;4",32,0,0,',0,0,offset _g_Speechary,seg _g_Speechary,0x0d,0x0a
.CODE
.public _g_Speechary
.iram
_g_Speechary:
	.dw 0
	.dw 5 dup(0)
.debug
	.dw '.stabs "g_array:G21=ar1;0;3;4",32,0,0,',0,0,offset _g_array,seg _g_array,0x0d,0x0a
.CODE
.public _g_array
.iram
_g_array:
	.dw 0
	.dw 3 dup(0)
.debug
	.dw '.stabs "voicflag:G4",32,0,0,',0,0,offset _voicflag,seg _voicflag,0x0d,0x0a
.CODE
.public _voicflag
.iram
_voicflag:
	.dw 0
.code
.debug
	.dw '.stabs "PlayTestValue:F19",36,0,0,',0,0,offset _PlayTestValue,seg _PlayTestValue,0x0d,0x0a
.CODE
.public _PlayTestValue
_PlayTestValue:	.proc
.debug
	.dw '.stabn 0x44,0,41,',0,0
	.dd LM1-_PlayTestValue
	.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,42,',0,0
	.dd LM2-_PlayTestValue
	.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
.debug
	.dw '.stabn 0x44,0,43,',0,0
	.dd LM3-_PlayTestValue
	.dw 0x0d,0x0a
.code
LM3:
L3:
	R1=[_g_speachIndex]	// QImode move
	CMP R1,[_g_speechID]	// QImode compare
	JNB L9	// QImode LTU
	PC=L5
L9:
	pc=L4	// jump
L5:
.debug
	.dw '.stabn 0x44,0,45,',0,0
	.dd LM4-_PlayTestValue
	.dw 0x0d,0x0a
.code
LM4:
LBB3:
	R1=3	// QImode move
	[SP--]=R1	// QImode move
	R1=3	// QImode move
	[SP--]=R1	// QImode move
	R1=_g_Speechary	// QImode move
	R2=[_g_speachIndex]	// QImode move
	R1+=R2	// addqi3_r0r
	R3=R1	// QImode move
	R2=[R3]	// QImode move
	[SP--]=R2	// QImode move
	call _SACM_S480_Play	// call with return value
	SP=SP+3
.debug
	.dw '.stabn 0x44,0,46,',0,0
	.dd LM5-_PlayTestValue
	.dw 0x0d,0x0a
.code
LM5:
L6:
	call _SACM_S480_Status	// call with return value
	R2=R1&1
	CMP R2,0	// QImode test
	JZ L10	// QImode NE
	PC=L8
L10:
	pc=L7	// jump
L8:
.debug
	.dw '.stabn 0x44,0,47,',0,0
	.dd LM6-_PlayTestValue
	.dw 0x0d,0x0a
.code
LM6:
	call _SACM_S480_ServiceLoop	// call with return value
	pc=L6	// jump
L7:
.debug
	.dw '.stabn 0x44,0,48,',0,0
	.dd LM7-_PlayTestValue
	.dw 0x0d,0x0a
.code
LM7:
	R1=[_g_speachIndex]	// QImode move
	R2=1	// QImode move
	[_g_speachIndex]=R1+R2
.debug
	.dw '.stabn 0x44,0,49,',0,0
	.dd LM8-_PlayTestValue
	.dw 0x0d,0x0a
.code
LM8:
LBE3:
	pc=L3	// jump
L4:
.debug
	.dw '.stabn 0x44,0,50,',0,0
	.dd LM9-_PlayTestValue
	.dw 0x0d,0x0a
.code
LM9:
	call _SACM_S480_Stop	// call with return value
.debug
	.dw '.stabn 0x44,0,51,',0,0
	.dd LM10-_PlayTestValue
	.dw 0x0d,0x0a
.code
LM10:
	R1=1	// QImode move
	[_voicflag]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,52,',0,0
	.dd LM11-_PlayTestValue
	.dw 0x0d,0x0a
.code
LM11:
LBE2:
.debug
	.dw '.stabn 0x44,0,52,',0,0
	.dd LM12-_PlayTestValue
	.dw 0x0d,0x0a
.code
LM12:
L2:

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

.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB2-_PlayTestValue
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB3-_PlayTestValue
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE3-_PlayTestValue
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE2-_PlayTestValue
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabf ',0,0
	.dd LME1-_PlayTestValue
	.dw 0x0d,0x0a
.code
LME1:
.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,56,',0,0
	.dd LM13-_main
	.dw 0x0d,0x0a
.code
LM13:
	// 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,57,',0,0
	.dd LM14-_main
	.dw 0x0d,0x0a
.code
LM14:
LBB4:
	R1=0	// QImode move
	[_g_uidisplay]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,58,',0,0
	.dd LM15-_main
	.dw 0x0d,0x0a
.code
LM15:
	call _System_Initial	// call with return value
.debug
	.dw '.stabn 0x44,0,59,',0,0
	.dd LM16-_main
	.dw 0x0d,0x0a
.code
LM16:
L12:
	pc=L14	// jump
	pc=L13	// jump
L14:
.debug
	.dw '.stabn 0x44,0,61,',0,0
	.dd LM17-_main
	.dw 0x0d,0x0a
.code
LM17:
LBB5:
	call _SP_GetCh	// call with return value
	[_g_uiKey]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,63,',0,0
	.dd LM18-_main
	.dw 0x0d,0x0a
.code
LM18:
	R1=[_g_uiKey]	// QImode move
	CMP R1,2	// QImode compare
	JNZ L47	// QImode EQ
	PC=L17
L47:
	CMP R1,2	// QImode compare
	JNA L48	// QImode GTU
	PC=L21
L48:
	CMP R1,1	// QImode compare
	JNZ L49	// QImode EQ
	PC=L16
L49:
	pc=L19	// jump
L21:
	CMP R1,4	// QImode compare
	JNZ L50	// QImode EQ
	PC=L18
L50:
	pc=L19	// jump
.debug
	.dw '.stabn 0x44,0,65,',0,0
	.dd LM19-_main
	.dw 0x0d,0x0a
.code
LM19:
LBB6:
L16:
.debug
	.dw '.stabn 0x44,0,66,',0,0
	.dd LM20-_main
	.dw 0x0d,0x0a
.code
LM20:
	R1=1	// QImode move
	[_g_uiStatus]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,67,',0,0
	.dd LM21-_main
	.dw 0x0d,0x0a
.code
LM21:
	call _RunTime2Hz	// call with return value
.debug
	.dw '.stabn 0x44,0,68,',0,0
	.dd LM22-_main
	.dw 0x0d,0x0a
.code
LM22:
	call _TmbCount	// call with return value
.debug
	.dw '.stabn 0x44,0,69,',0,0
	.dd LM23-_main
	.dw 0x0d,0x0a
.code
LM23:
	call _Rline_on	// call with return value
.debug
	.dw '.stabn 0x44,0,70,',0,0
	.dd LM24-_main
	.dw 0x0d,0x0a
.code
LM24:
	pc=L15	// jump
L17:
.debug
	.dw '.stabn 0x44,0,72,',0,0
	.dd LM25-_main
	.dw 0x0d,0x0a
.code
LM25:
	R1=2	// QImode move
	[_g_uiStatus]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,73,',0,0
	.dd LM26-_main
	.dw 0x0d,0x0a
.code
LM26:
	call _RunTime2Hz	// call with return value
.debug
	.dw '.stabn 0x44,0,74,',0,0
	.dd LM27-_main
	.dw 0x0d,0x0a
.code
LM27:
	call _TmbCount	// call with return value
.debug
	.dw '.stabn 0x44,0,75,',0,0
	.dd LM28-_main
	.dw 0x0d,0x0a
.code
LM28:
	call _Cline_on	// call with return value
.debug
	.dw '.stabn 0x44,0,77,',0,0
	.dd LM29-_main
	.dw 0x0d,0x0a
.code
LM29:
	pc=L15	// jump
L18:
.debug
	.dw '.stabn 0x44,0,79,',0,0
	.dd LM30-_main
	.dw 0x0d,0x0a
.code
LM30:
	R1=3	// QImode move
	[_g_uiStatus]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,80,',0,0
	.dd LM31-_main
	.dw 0x0d,0x0a
.code
LM31:
	call _SP_INT_32Hz	// call with return value
.debug
	.dw '.stabn 0x44,0,81,',0,0
	.dd LM32-_main
	.dw 0x0d,0x0a
.code
LM32:
	call _TmbCount	// call with return value
.debug
	.dw '.stabn 0x44,0,82,',0,0
	.dd LM33-_main
	.dw 0x0d,0x0a
.code
LM33:
	call _Lline_on	// call with return value
.debug
	.dw '.stabn 0x44,0,84,',0,0
	.dd LM34-_main
	.dw 0x0d,0x0a
.code
LM34:
	pc=L15	// jump
L19:
.debug
	.dw '.stabn 0x44,0,86,',0,0
	.dd LM35-_main
	.dw 0x0d,0x0a
.code
LM35:
	pc=L15	// jump
.debug
	.dw '.stabn 0x44,0,89,',0,0
	.dd LM36-_main
	.dw 0x0d,0x0a
.code
LM36:
LBE6:
L15:
.debug
	.dw '.stabn 0x44,0,94,',0,0
	.dd LM37-_main
	.dw 0x0d,0x0a
.code
LM37:
	R1=[_g_uiStatus]	// QImode move
	CMP R1,2	// QImode compare
	JNZ L51	// QImode EQ
	PC=L30
L51:
	CMP R1,2	// QImode compare
	JNA L52	// QImode GTU
	PC=L44
L52:
	CMP R1,1	// QImode compare
	JNZ L53	// QImode EQ
	PC=L23
L53:
	pc=L42	// jump
L44:
	CMP R1,3	// QImode compare
	JNZ L54	// QImode EQ
	PC=L36
L54:
	pc=L42	// jump
.debug
	.dw '.stabn 0x44,0,96,',0,0
	.dd LM38-_main
	.dw 0x0d,0x0a
.code
LM38:
LBB7:
L23:
.debug
	.dw '.stabn 0x44,0,98,',0,0
	.dd LM39-_main
	.dw 0x0d,0x0a
.code
LM39:
	R1=[_voicflag]	// QImode move
	CMP R1,0	// QImode test
	JNZ L55	// QImode EQ
	PC=L24
L55:
.debug
	.dw '.stabn 0x44,0,99,',0,0
	.dd LM40-_main
	.dw 0x0d,0x0a
.code
LM40:
	call _RunTime2Hz	// call with return value
L24:
.debug
	.dw '.stabn 0x44,0,100,',0,0
	.dd LM41-_main
	.dw 0x0d,0x0a
.code
LM41:
L25:
	R1=[_g_ucIntFlag]	// QImode move
	CMP R1,0	// QImode test
	JZ L56	// QImode NE
	PC=L27
L56:
	pc=L26	// jump
L27:
.debug
	.dw '.stabn 0x44,0,102,',0,0
	.dd LM42-_main
	.dw 0x0d,0x0a
.code
LM42:
LBB8:
	R1=[28684]	// QImode move
	[_g_uifx]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,103,',0,0

⌨️ 快捷键说明

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