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

📄 main.asm

📁 电子词典的设计开发
💻 ASM
📖 第 1 页 / 共 5 页
字号:
// GCC for SUNPLUS u'nSP version 1.0.10-10
// Command: C:\PROGRA~1\Sunplus\UNSPID~1\unSPIDE\cc1.exe C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ccakaaaa.i -quiet -dumpbase main.c -gstabs -o .\Debug/main.asm
// gcc2_compiled.:

.stabs "E:\\丁国杰作品\\电子词典/", 0x64, 0, 3, Ltext0
.stabs "E:/禱\241筡\372絓\334譢\367芢\267/礬\347譢\323碶\312礬\344/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 "uchar:t20=11",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "ret:G4",32,0,0,',0,0,offset _ret,seg _ret,0x0d,0x0a
.CODE
.public _ret
.iram
_ret:
	.dw 0
.debug
	.dw '.stabs "line:G4",32,0,0,',0,0,offset _line,seg _line,0x0d,0x0a
.CODE
.public _line
.iram
_line:
	.dw 0
.debug
	.dw '.stabs "row:G4",32,0,0,',0,0,offset _row,seg _row,0x0d,0x0a
.CODE
.public _row
.iram
_row:
	.dw 0
.debug
	.dw '.stabs "tel_find_name:G4",32,0,0,',0,0,offset _tel_find_name,seg _tel_find_name,0x0d,0x0a
.CODE
.public _tel_find_name
.iram
_tel_find_name:
	.dw 0
.debug
	.dw '.stabs "flag:G4",32,0,0,',0,0,offset _flag,seg _flag,0x0d,0x0a
.CODE
.public _flag
.iram
_flag:
	.dw 0
.debug
	.dw '.stabs "flag_you:G4",32,0,0,',0,0,offset _flag_you,seg _flag_you,0x0d,0x0a
.CODE
.public _flag_you
.iram
_flag_you:
	.dw 0
.debug
	.dw '.stabs "flag_edit_tel:G4",32,0,0,',0,0,offset _flag_edit_tel,seg _flag_edit_tel,0x0d,0x0a
.CODE
.public _flag_edit_tel
.iram
_flag_edit_tel:
	.dw 0
.debug
	.dw '.stabs "flag_dictionary:G4",32,0,0,',0,0,offset _flag_dictionary,seg _flag_dictionary,0x0d,0x0a
.CODE
.public _flag_dictionary
.iram
_flag_dictionary:
	.dw 0
.debug
	.dw '.stabs "flag_find_tel:G4",32,0,0,',0,0,offset _flag_find_tel,seg _flag_find_tel,0x0d,0x0a
.CODE
.public _flag_find_tel
.iram
_flag_find_tel:
	.dw 0
.debug
	.dw '.stabs "flag_change:G4",32,0,0,',0,0,offset _flag_change,seg _flag_change,0x0d,0x0a
.CODE
.public _flag_change
.iram
_flag_change:
	.dw 0
.debug
	.dw '.stabs "flag_edit_num:G4",32,0,0,',0,0,offset _flag_edit_num,seg _flag_edit_num,0x0d,0x0a
.CODE
.public _flag_edit_num
.iram
_flag_edit_num:
	.dw 0
.debug
	.dw '.stabs "line_find:G4",32,0,0,',0,0,offset _line_find,seg _line_find,0x0d,0x0a
.CODE
.public _line_find
.iram
_line_find:
	.dw 0
.debug
	.dw '.stabs "tel_num_you:G4",32,0,0,',0,0,offset _tel_num_you,seg _tel_num_you,0x0d,0x0a
.CODE
.public _tel_num_you
.iram
_tel_num_you:
	.dw 0
.code
.debug
	.dw '.stabs "delay:F19",36,0,0,',0,0,offset _delay,seg _delay,0x0d,0x0a
.CODE
.public _delay
_delay:	.proc
.debug
	.dw '.stabn 0x44,0,66,',0,0
	.dd LM1-_delay
	.dw 0x0d,0x0a
.code
LM1:
	// total=3, vars=3
	// frame_pointer_needed: 1
	push bp to [sp]
	sp-=3
	bp=sp+1

	R1=BP+6
	[bp+2]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,67,',0,0
	.dd LM2-_delay
	.dw 0x0d,0x0a
.code
LM2:
LBB2:
.debug
	.dw '.stabn 0x44,0,68,',0,0
	.dd LM3-_delay
	.dw 0x0d,0x0a
.code
LM3:
	R1=0	// QImode move
	[BP]=R1	// QImode move
L3:
	R1=[BP]	// QImode move
	CMP R1,1	// QImode compare
	JA L11	// QImode LEU
	PC=L6
L11:
	pc=L4	// Indirect jump
L6:
.debug
	.dw '.stabn 0x44,0,69,',0,0
	.dd LM4-_delay
	.dw 0x0d,0x0a
.code
LM4:
	R1=BP	// QImode move
	R2=BP+1
	R1=0	// QImode move
	R3=R2	// QImode move
	[R3]=R1	// QImode move
L7:
	R1=BP	// QImode move
	R2=BP+1
	R4=R2	// QImode move
	R1=[R4]	// QImode move
	CMP R1,(-2)	// QImode compare
	JA L12	// QImode LEU
	PC=L10
L12:
	pc=L5	// Indirect jump
L10:
.debug
	.dw '.stabn 0x44,0,70,',0,0
	.dd LM5-_delay
	.dw 0x0d,0x0a
.code
LM5:
	call _Clear_Watch_Dog	// call with return value
.debug
	.dw '.stabn 0x44,0,69,',0,0
	.dd LM6-_delay
	.dw 0x0d,0x0a
.code
LM6:
L9:
	R1=BP	// QImode move
	R2=BP+1
	R3=BP	// QImode move
	R1=BP+1
	R2=BP	// QImode move
	R3=BP+1
	R4=R3	// QImode move
	R2=[R4]	// QImode move
	R3=R2+1
	R2=R1	// QImode move
	[R2]=R3	// QImode move
	pc=L7	// Indirect jump
L8:
.debug
	.dw '.stabn 0x44,0,68,',0,0
	.dd LM7-_delay
	.dw 0x0d,0x0a
.code
LM7:
L5:
	R1=[BP]	// QImode move
	R2=R1+1
	[BP]=R2	// QImode move
	pc=L3	// Indirect jump
L4:
.debug
	.dw '.stabn 0x44,0,71,',0,0
	.dd LM8-_delay
	.dw 0x0d,0x0a
.code
LM8:
LBE2:
.debug
	.dw '.stabn 0x44,0,71,',0,0
	.dd LM9-_delay
	.dw 0x0d,0x0a
.code
LM9:
L2:

	sp+=3
	pop bp from [sp]
	retf
	.endp	// end of delay

.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB2-_delay
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabs "r1:4",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "r2:4",128,0,0,1',0x0d,0x0a
.CODE
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE2-_delay
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabf ',0,0
	.dd LME1-_delay
	.dw 0x0d,0x0a
.code
LME1:
.text
LC0:
	.str 'b','u',' ','h','a','o',' ','d','e'
	.dw 0
LC1:
	.str 'd','a','i',' ','z','i'
	.dw 0
LC2:
	.str 'n','a','n',' ','h','a','i'
	.dw 0
LC3:
	.str 'y','u','e',' ','l','i','a','n','g'
	.dw 0
LC4:
	.str 'x','i',' ','h','u','a','n',',','a','i'
	.dw 0
LC5:
	.str 't','a','o',' ','y','a','n',',','h','e','n'
	.dw 0
LC6:
	.str 't','i','a','n',' ','q','i'
	.dw 0
LC7:
	.str 'm','i','n','t',' ','t','i','a','n'
	.dw 0
LC8:
	.str 'z','u','o',' ','t','i','a','n'
	.dw 0
LC9:
	.str 'S','O','R','R','Y','!'
	.dw 0
.code
.debug
	.dw '.stabs "ciku:F19",36,0,0,',0,0,offset _ciku,seg _ciku,0x0d,0x0a
.CODE
.public _ciku
_ciku:	.proc
.debug
	.dw '.stabn 0x44,0,77,',0,0
	.dd LM10-_ciku
	.dw 0x0d,0x0a
.code
LM10:
	// 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,78,',0,0
	.dd LM11-_ciku
	.dw 0x0d,0x0a
.code
LM11:
LBB3:
	R2=[_ret]	// QImode move
	R1=R2+(-1)
	CMP R1,8	// QImode compare
	JNA L34	// QImode GTU
	PC=L31
L34:
	R2=R1	// QImode move
	R1=R2	// QImode move
	R1=R1+L32
	R3=R1	// QImode move
	R2=[R3]	// QImode move
	pc=R2	// tablejump
.text
L32:
	.dw L15
	.dw L15
	.dw L17
	.dw L21
	.dw L31
	.dw L31
	.dw L25
	.dw L27
	.dw L29
.code
.debug
	.dw '.stabn 0x44,0,80,',0,0
	.dd LM12-_ciku
	.dw 0x0d,0x0a
.code
LM12:
L15:
	pc=L14	// Indirect jump
L16:
.debug
	.dw '.stabn 0x44,0,81,',0,0
	.dd LM13-_ciku
	.dw 0x0d,0x0a
.code
LM13:
	pc=L14	// Indirect jump
L17:
.debug
	.dw '.stabn 0x44,0,83,',0,0
	.dd LM14-_ciku
	.dw 0x0d,0x0a
.code
LM14:
	R1=[_KeycodeLED]	// QImode move
	CMP R1,98	// QImode compare
	JZ L35	// QImode NE
	PC=L18
L35:
	R1=[_KeycodeLED+1]	// QImode move
	CMP R1,97	// QImode compare
	JZ L36	// QImode NE
	PC=L18
L36:
	R1=[_KeycodeLED+2]	// QImode move
	CMP R1,100	// QImode compare
	JZ L37	// QImode NE
	PC=L18
L37:
.debug
	.dw '.stabn 0x44,0,84,',0,0
	.dd LM15-_ciku
	.dw 0x0d,0x0a
.code
LM15:
LBB4:
	R1=50	// QImode move
	[SP--]=R1	// QImode move
	R1=120	// QImode move
	[SP--]=R1	// QImode move
	R1=2	// QImode move
	[SP--]=R1	// QImode move
	R1=LC0	// QImode move
	[SP--]=R1	// QImode move
	call _FG_PutStr	// call with return value
	SP=SP+4
	R1=1	// QImode move
	[_flag_you]=R1	// QImode move
LBE4:
L18:
.debug
	.dw '.stabn 0x44,0,85,',0,0
	.dd LM16-_ciku
	.dw 0x0d,0x0a
.code
LM16:
	R1=[_KeycodeLED]	// QImode move
	CMP R1,98	// QImode compare
	JZ L38	// QImode NE
	PC=L19
L38:
	R1=[_KeycodeLED+1]	// QImode move
	CMP R1,97	// QImode compare
	JZ L39	// QImode NE
	PC=L19
L39:
	R1=[_KeycodeLED+2]	// QImode move
	CMP R1,103	// QImode compare
	JZ L40	// QImode NE
	PC=L19
L40:
.debug
	.dw '.stabn 0x44,0,86,',0,0
	.dd LM17-_ciku
	.dw 0x0d,0x0a
.code
LM17:
LBB5:
	R1=50	// QImode move
	[SP--]=R1	// QImode move
	R1=120	// QImode move
	[SP--]=R1	// QImode move
	R1=2	// QImode move
	[SP--]=R1	// QImode move
	R1=LC1	// QImode move
	[SP--]=R1	// QImode move
	call _FG_PutStr	// call with return value
	SP=SP+4
	R1=1	// QImode move
	[_flag_you]=R1	// QImode move
LBE5:
L19:
.debug
	.dw '.stabn 0x44,0,87,',0,0
	.dd LM18-_ciku
	.dw 0x0d,0x0a
.code
LM18:
	R1=[_KeycodeLED]	// QImode move
	CMP R1,98	// QImode compare
	JZ L41	// QImode NE
	PC=L20
L41:
	R1=[_KeycodeLED+1]	// QImode move
	CMP R1,111	// QImode compare
	JZ L42	// QImode NE
	PC=L20
L42:
	R1=[_KeycodeLED+2]	// QImode move
	CMP R1,121	// QImode compare
	JZ L43	// QImode NE
	PC=L20
L43:
.debug
	.dw '.stabn 0x44,0,88,',0,0
	.dd LM19-_ciku
	.dw 0x0d,0x0a
.code
LM19:
LBB6:
	R1=50	// QImode move
	[SP--]=R1	// QImode move
	R1=120	// QImode move
	[SP--]=R1	// QImode move
	R1=2	// QImode move
	[SP--]=R1	// QImode move
	R1=LC2	// QImode move
	[SP--]=R1	// QImode move
	call _FG_PutStr	// call with return value
	SP=SP+4
	R1=1	// QImode move
	[_flag_you]=R1	// QImode move
LBE6:
L20:
.debug
	.dw '.stabn 0x44,0,89,',0,0
	.dd LM20-_ciku
	.dw 0x0d,0x0a
.code
LM20:
	pc=L14	// Indirect jump
L21:
.debug
	.dw '.stabn 0x44,0,91,',0,0
	.dd LM21-_ciku
	.dw 0x0d,0x0a
.code
LM21:
	R1=[_KeycodeLED]	// QImode move
	CMP R1,109	// QImode compare
	JZ L44	// QImode NE
	PC=L22
L44:
	R1=[_KeycodeLED+1]	// QImode move
	CMP R1,111	// QImode compare
	JZ L45	// QImode NE
	PC=L22
L45:
	R1=[_KeycodeLED+2]	// QImode move
	CMP R1,111	// QImode compare
	JZ L46	// QImode NE
	PC=L22
L46:
	R1=[_KeycodeLED+3]	// QImode move
	CMP R1,110	// QImode compare
	JZ L47	// QImode NE
	PC=L22
L47:
.debug
	.dw '.stabn 0x44,0,92,',0,0
	.dd LM22-_ciku
	.dw 0x0d,0x0a
.code
LM22:
LBB7:
	R1=50	// QImode move
	[SP--]=R1	// QImode move
	R1=120	// QImode move
	[SP--]=R1	// QImode move
	R1=2	// QImode move
	[SP--]=R1	// QImode move
	R1=LC3	// QImode move
	[SP--]=R1	// QImode move
	call _FG_PutStr	// call with return value
	SP=SP+4
	R1=1	// QImode move
	[_flag_you]=R1	// QImode move
LBE7:
L22:
.debug
	.dw '.stabn 0x44,0,93,',0,0
	.dd LM23-_ciku
	.dw 0x0d,0x0a
.code
LM23:
	R1=[_KeycodeLED]	// QImode move
	CMP R1,108	// QImode compare
	JZ L48	// QImode NE
	PC=L23
L48:
	R1=[_KeycodeLED+1]	// QImode move
	CMP R1,111	// QImode compare
	JZ L49	// QImode NE
	PC=L23
L49:
	R1=[_KeycodeLED+2]	// QImode move
	CMP R1,118	// QImode compare
	JZ L50	// QImode NE
	PC=L23
L50:
	R1=[_KeycodeLED+3]	// QImode move
	CMP R1,101	// QImode compare
	JZ L51	// QImode NE
	PC=L23
L51:
.debug
	.dw '.stabn 0x44,0,94,',0,0
	.dd LM24-_ciku
	.dw 0x0d,0x0a
.code
LM24:
LBB8:
	R1=50	// QImode move
	[SP--]=R1	// QImode move
	R1=120	// QImode move
	[SP--]=R1	// QImode move
	R1=2	// QImode move
	[SP--]=R1	// QImode move
	R1=LC4	// QImode move
	[SP--]=R1	// QImode move
	call _FG_PutStr	// call with return value
	SP=SP+4
	R1=1	// QImode move
	[_flag_you]=R1	// QImode move
LBE8:
L23:
.debug
	.dw '.stabn 0x44,0,95,',0,0
	.dd LM25-_ciku
	.dw 0x0d,0x0a
.code
LM25:
	R1=[_KeycodeLED]	// QImode move
	CMP R1,104	// QImode compare
	JZ L52	// QImode NE
	PC=L24
L52:
	R1=[_KeycodeLED+1]	// QImode move
	CMP R1,97	// QImode compare
	JZ L53	// QImode NE
	PC=L24
L53:
	R1=[_KeycodeLED+2]	// QImode move
	CMP R1,116	// QImode compare
	JZ L54	// QImode NE
	PC=L24
L54:
	R1=[_KeycodeLED+3]	// QImode move
	CMP R1,101	// QImode compare
	JZ L55	// QImode NE
	PC=L24
L55:
.debug
	.dw '.stabn 0x44,0,96,',0,0
	.dd LM26-_ciku
	.dw 0x0d,0x0a
.code
LM26:
LBB9:
	R1=50	// QImode move
	[SP--]=R1	// QImode move
	R1=120	// QImode move
	[SP--]=R1	// QImode move
	R1=2	// QImode move
	[SP--]=R1	// QImode move
	R1=LC5	// QImode move
	[SP--]=R1	// QImode move
	call _FG_PutStr	// call with return value
	SP=SP+4
	R1=1	// QImode move
	[_flag_you]=R1	// QImode move
LBE9:
L24:
.debug
	.dw '.stabn 0x44,0,97,',0,0
	.dd LM27-_ciku
	.dw 0x0d,0x0a
.code
LM27:
	pc=L14	// Indirect jump
L25:
.debug
	.dw '.stabn 0x44,0,99,',0,0
	.dd LM28-_ciku
	.dw 0x0d,0x0a
.code
LM28:
	R1=[_KeycodeLED]	// QImode move
	CMP R1,119	// QImode compare
	JZ L56	// QImode NE
	PC=L26
L56:
	R1=[_KeycodeLED+1]	// QImode move
	CMP R1,101	// QImode compare
	JZ L57	// QImode NE
	PC=L26
L57:
	R1=[_KeycodeLED+2]	// QImode move

⌨️ 快捷键说明

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