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

📄 mian.asm

📁 该程序是用C编写的
💻 ASM
📖 第 1 页 / 共 5 页
字号:
// GCC for SUNPLUS u'nSP version 1.0.10-10
// Command: F:\61\unSPIDE\cc1.exe C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ccYlaaaa.i -quiet -dumpbase mian.c -gstabs -o .\Debug/mian.asm
// gcc2_compiled.:

.stabs "F:\\61\\已经ok的程序\\万年历/", 0x64, 0, 3, Ltext0
.stabs "F:/61/襖\321綷\255ok礬\304砛\314衆\362/蚛\362腬\352繺\372/mian.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
// GCC inline ASM start
	.include hardware.inc
// GCC inline ASM end
.debug
	.dw '.stabs "Tabel:G20=ar1;0;9;1",32,0,0,',0,0,offset _Tabel,seg _Tabel,0x0d,0x0a
.CODE
.public _Tabel
.iram
_Tabel:
	.dw 63
	.dw 6
	.dw 91
	.dw 79
	.dw 102
	.dw 109
	.dw 125
	.dw 7
	.dw 127
	.dw 111
.debug
	.dw '.stabs "Month:G21=ar1;0;11;1",32,0,0,',0,0,offset _Month,seg _Month,0x0d,0x0a
.CODE
.public _Month
.iram
_Month:
	.dw 31
	.dw 28
	.dw 31
	.dw 30
	.dw 31
	.dw 30
	.dw 31
	.dw 31
	.dw 30
	.dw 31
	.dw 30
	.dw 31
.debug
	.dw '.stabs "Sec:G1",32,0,0,',0,0,offset _Sec,seg _Sec,0x0d,0x0a
.CODE
.public _Sec
.iram
_Sec:
	.dw 0
.debug
	.dw '.stabs "Hour:G1",32,0,0,',0,0,offset _Hour,seg _Hour,0x0d,0x0a
.CODE
.public _Hour
.iram
_Hour:
	.dw 0
.debug
	.dw '.stabs "Min:G1",32,0,0,',0,0,offset _Min,seg _Min,0x0d,0x0a
.CODE
.public _Min
.iram
_Min:
	.dw 0
.debug
	.dw '.stabs "Day:G1",32,0,0,',0,0,offset _Day,seg _Day,0x0d,0x0a
.CODE
.public _Day
.iram
_Day:
	.dw 0
.debug
	.dw '.stabs "Mon:G1",32,0,0,',0,0,offset _Mon,seg _Mon,0x0d,0x0a
.CODE
.public _Mon
.iram
_Mon:
	.dw 0
.debug
	.dw '.stabs "Year:G1",32,0,0,',0,0,offset _Year,seg _Year,0x0d,0x0a
.CODE
.public _Year
.iram
_Year:
	.dw 0
.debug
	.dw '.stabs "State:G1",32,0,0,',0,0,offset _State,seg _State,0x0d,0x0a
.CODE
.public _State
.iram
_State:
	.dw 1
.debug
	.dw '.stabs "Funcflag:G1",32,0,0,',0,0,offset _Funcflag,seg _Funcflag,0x0d,0x0a
.CODE
.public _Funcflag
.iram
_Funcflag:
	.dw 1
.debug
	.dw '.stabs "Keycode:G1",32,0,0,',0,0,offset _Keycode,seg _Keycode,0x0d,0x0a
.CODE
.public _Keycode
.iram
_Keycode:
	.dw 0
.debug
	.dw '.stabs "stopflag:G1",32,0,0,',0,0,offset _stopflag,seg _stopflag,0x0d,0x0a
.CODE
.public _stopflag
.iram
_stopflag:
	.dw 0
.debug
	.dw '.stabs "Flag:G1",32,0,0,',0,0,offset _Flag,seg _Flag,0x0d,0x0a
.CODE
.public _Flag
.iram
_Flag:
	.dw 0
.debug
	.dw '.stabs "Runyear:G1",32,0,0,',0,0,offset _Runyear,seg _Runyear,0x0d,0x0a
.CODE
.public _Runyear
.iram
_Runyear:
	.dw 0
.debug
	.dw '.stabs "Keydown:G1",32,0,0,',0,0,offset _Keydown,seg _Keydown,0x0d,0x0a
.CODE
.public _Keydown
.iram
_Keydown:
	.dw 1
.debug
	.dw '.stabs "temp2:G1",32,0,0,',0,0,offset _temp2,seg _temp2,0x0d,0x0a
.CODE
.public _temp2
.iram
_temp2:
	.dw -1
.code
.debug
	.dw '.stabs "main:F19",36,0,0,',0,0,offset _main,seg _main,0x0d,0x0a
.CODE
.public _main
_main:	.proc
.debug
	.dw '.stabn 0x44,0,25,',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,26,',0,0
	.dd LM2-_main
	.dw 0x0d,0x0a
.code
LM2:
LBB2:
	call _SystemInit	// call with return value
.debug
	.dw '.stabn 0x44,0,27,',0,0
	.dd LM3-_main
	.dw 0x0d,0x0a
.code
LM3:
L3:
	pc=L5	// Indirect jump
	pc=L4	// Indirect jump
L5:
.debug
	.dw '.stabn 0x44,0,29,',0,0
	.dd LM4-_main
	.dw 0x0d,0x0a
.code
LM4:
	R1=[_State]	// QImode move
	CMP R1,1	// QImode compare
	JZ L11	// QImode NE
	PC=L6
L11:
.debug
	.dw '.stabn 0x44,0,30,',0,0
	.dd LM5-_main
	.dw 0x0d,0x0a
.code
LM5:
	call _display_1	// call without return value
	pc=L7	// Indirect jump
L6:
.debug
	.dw '.stabn 0x44,0,31,',0,0
	.dd LM6-_main
	.dw 0x0d,0x0a
.code
LM6:
	R1=[_State]	// QImode move
	CMP R1,2	// QImode compare
	JZ L12	// QImode NE
	PC=L7
L12:
.debug
	.dw '.stabn 0x44,0,32,',0,0
	.dd LM7-_main
	.dw 0x0d,0x0a
.code
LM7:
	call _display_2	// call without return value
L8:
L7:
.debug
	.dw '.stabn 0x44,0,33,',0,0
	.dd LM8-_main
	.dw 0x0d,0x0a
.code
LM8:
	R1=[_Keydown]	// QImode move
	CMP R1,1	// QImode compare
	JZ L13	// QImode NE
	PC=L9
L13:
	R1=[_Funcflag]	// QImode move
	CMP R1,1	// QImode compare
	JZ L14	// QImode NE
	PC=L9
L14:
.debug
	.dw '.stabn 0x44,0,35,',0,0
	.dd LM9-_main
	.dw 0x0d,0x0a
.code
LM9:
LBB3:
	call _Key_scan	// call with return value
.debug
	.dw '.stabn 0x44,0,36,',0,0
	.dd LM10-_main
	.dw 0x0d,0x0a
.code
LM10:
	R1=[_Keydown]	// QImode move
	CMP R1,0	// QImode test
	JZ L15	// QImode NE
	PC=L9
L15:
.debug
	.dw '.stabn 0x44,0,37,',0,0
	.dd LM11-_main
	.dw 0x0d,0x0a
.code
LM11:
	call _Keywork	// call without return value
L10:
.debug
	.dw '.stabn 0x44,0,38,',0,0
	.dd LM12-_main
	.dw 0x0d,0x0a
.code
LM12:
LBE3:
L9:
.debug
	.dw '.stabn 0x44,0,39,',0,0
	.dd LM13-_main
	.dw 0x0d,0x0a
.code
LM13:
	pc=L3	// Indirect jump
L4:
.debug
	.dw '.stabn 0x44,0,40,',0,0
	.dd LM14-_main
	.dw 0x0d,0x0a
.code
LM14:
LBE2:
.debug
	.dw '.stabn 0x44,0,40,',0,0
	.dd LM15-_main
	.dw 0x0d,0x0a
.code
LM15:
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 "Function:F19",36,0,0,',0,0,offset _Function,seg _Function,0x0d,0x0a
.CODE
.public _Function
_Function:	.proc
.debug
	.dw '.stabn 0x44,0,43,',0,0
	.dd LM16-_Function
	.dw 0x0d,0x0a
.code
LM16:
	// 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,44,',0,0
	.dd LM17-_Function
	.dw 0x0d,0x0a
.code
LM17:
LBB4:
	R1=[_Sec]	// QImode move
	CMP R1,60	// QImode compare
	JZ L22	// QImode NE
	PC=L17
L22:
.debug
	.dw '.stabn 0x44,0,46,',0,0
	.dd LM18-_Function
	.dw 0x0d,0x0a
.code
LM18:
	R1=0	// QImode move
	[_Sec]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,47,',0,0
	.dd LM19-_Function
	.dw 0x0d,0x0a
.code
LM19:
	R1=[_Min]	// QImode move
	R2=1	// QImode move
	[_Min]=R1+R2
L17:
.debug
	.dw '.stabn 0x44,0,49,',0,0
	.dd LM20-_Function
	.dw 0x0d,0x0a
.code
LM20:
	R1=[_Min]	// QImode move
	CMP R1,60	// QImode compare
	JZ L23	// QImode NE
	PC=L18
L23:
.debug
	.dw '.stabn 0x44,0,51,',0,0
	.dd LM21-_Function
	.dw 0x0d,0x0a
.code
LM21:
	R1=0	// QImode move
	[_Min]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,52,',0,0
	.dd LM22-_Function
	.dw 0x0d,0x0a
.code
LM22:
	R1=[_Hour]	// QImode move
	R2=1	// QImode move
	[_Hour]=R1+R2
L18:
.debug
	.dw '.stabn 0x44,0,54,',0,0
	.dd LM23-_Function
	.dw 0x0d,0x0a
.code
LM23:
	R1=[_Hour]	// QImode move
	CMP R1,23	// QImode compare
	JG L24	// QImode LE
	PC=L19
L24:
.debug
	.dw '.stabn 0x44,0,56,',0,0
	.dd LM24-_Function
	.dw 0x0d,0x0a
.code
LM24:
	R1=0	// QImode move
	[_Hour]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,57,',0,0
	.dd LM25-_Function
	.dw 0x0d,0x0a
.code
LM25:
	R1=[_Day]	// QImode move
	R2=1	// QImode move
	[_Day]=R1+R2
L19:
.debug
	.dw '.stabn 0x44,0,59,',0,0
	.dd LM26-_Function
	.dw 0x0d,0x0a
.code
LM26:
	R1=[_Mon]	// QImode move
	[SP--]=R1	// QImode move
	call _Maxday	// call with return value
	SP=SP+1
	R2=R1+1
	R1=[_Day]	// QImode move
	CMP R1,R2	// QImode compare
	JNL L25	// QImode LT
	PC=L20
L25:
.debug
	.dw '.stabn 0x44,0,61,',0,0
	.dd LM27-_Function
	.dw 0x0d,0x0a
.code
LM27:
	R1=1	// QImode move
	[_Day]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,62,',0,0
	.dd LM28-_Function
	.dw 0x0d,0x0a
.code
LM28:
	R1=[_Mon]	// QImode move
	R2=1	// QImode move
	[_Mon]=R1+R2
L20:
.debug
	.dw '.stabn 0x44,0,64,',0,0
	.dd LM29-_Function
	.dw 0x0d,0x0a
.code
LM29:
	R1=[_Mon]	// QImode move
	CMP R1,12	// QImode compare
	JG L26	// QImode LE
	PC=L21
L26:
.debug
	.dw '.stabn 0x44,0,66,',0,0
	.dd LM30-_Function
	.dw 0x0d,0x0a
.code
LM30:
	R1=1	// QImode move
	[_Mon]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,67,',0,0
	.dd LM31-_Function
	.dw 0x0d,0x0a
.code
LM31:
	R1=[_Year]	// QImode move
	R2=1	// QImode move
	[_Year]=R1+R2
.debug
	.dw '.stabn 0x44,0,68,',0,0
	.dd LM32-_Function
	.dw 0x0d,0x0a
.code
LM32:
	R1=[_Year]	// QImode move
	[SP--]=R1	// QImode move
	call _Leap_year	// call without return value
	SP=SP+1
L21:
.debug
	.dw '.stabn 0x44,0,70,',0,0
	.dd LM33-_Function
	.dw 0x0d,0x0a
.code
LM33:
	R1=1	// QImode move
	[_Funcflag]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,71,',0,0
	.dd LM34-_Function
	.dw 0x0d,0x0a
.code
LM34:
LBE4:
.debug
	.dw '.stabn 0x44,0,71,',0,0
	.dd LM35-_Function
	.dw 0x0d,0x0a
.code
LM35:
L16:

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

.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB4-_Function
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE4-_Function
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabf ',0,0
	.dd LME2-_Function
	.dw 0x0d,0x0a
.code
LME2:
.code
.debug
	.dw '.stabs "Leap_year:F19",36,0,0,',0,0,offset _Leap_year,seg _Leap_year,0x0d,0x0a
.CODE
.public _Leap_year
_Leap_year:	.proc
.debug
	.dw '.stabn 0x44,0,74,',0,0
	.dd LM36-_Leap_year
	.dw 0x0d,0x0a
.code
LM36:
	// 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,75,',0,0
	.dd LM37-_Leap_year
	.dw 0x0d,0x0a
.code
LM37:
	R2=[BP]	// QImode move
	R1=[R2]	// QImode move
	R2=100	// QImode move
	[SP--]=R2	// QImode move
	[SP--]=R1	// QImode move
	call __modi1	// call with return value
	SP=SP+2
	CMP R1,0	// QImode test
	JZ L34	// QImode NE
	PC=L28
L34:
.debug
	.dw '.stabn 0x44,0,77,',0,0
	.dd LM38-_Leap_year
	.dw 0x0d,0x0a
.code
LM38:
	pc=L29	// Indirect jump
.debug
	.dw '.stabn 0x44,0,78,',0,0
	.dd LM39-_Leap_year
	.dw 0x0d,0x0a
.code
LM39:
	R1=1	// QImode move
	[_Runyear]=R1	// QImode move
	pc=L30	// Indirect jump
L29:
.debug
	.dw '.stabn 0x44,0,80,',0,0
	.dd LM40-_Leap_year
	.dw 0x0d,0x0a
.code
LM40:
	R1=0	// QImode move
	[_Runyear]=R1	// QImode move
L30:
.debug
	.dw '.stabn 0x44,0,81,',0,0
	.dd LM41-_Leap_year
	.dw 0x0d,0x0a
.code
LM41:
	pc=L31	// Indirect jump
L28:
.debug
	.dw '.stabn 0x44,0,84,',0,0
	.dd LM42-_Leap_year
	.dw 0x0d,0x0a
.code
LM42:
	R2=[BP]	// QImode move
	R1=[R2]	// QImode move
	R2=R1&3
	CMP R2,0	// QImode test
	JZ L35	// QImode NE
	PC=L32
L35:
.debug
	.dw '.stabn 0x44,0,85,',0,0
	.dd LM43-_Leap_year
	.dw 0x0d,0x0a
.code
LM43:
	R1=1	// QImode move
	[_Runyear]=R1	// QImode move
	pc=L31	// Indirect jump
L32:
.debug
	.dw '.stabn 0x44,0,87,',0,0
	.dd LM44-_Leap_year
	.dw 0x0d,0x0a
.code
LM44:
	R1=0	// QImode move
	[_Runyear]=R1	// QImode move
L33:
L31:
.debug
	.dw '.stabn 0x44,0,89,',0,0
	.dd LM45-_Leap_year
	.dw 0x0d,0x0a
.code
LM45:
.debug
	.dw '.stabn 0x44,0,89,',0,0
	.dd LM46-_Leap_year
	.dw 0x0d,0x0a
.code
LM46:
L27:

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

.debug
	.dw '.stabs "Year:p1",160,0,0,4',0x0d,0x0a
.CODE
.debug
	.dw '.stabf ',0,0
	.dd LME3-_Leap_year
	.dw 0x0d,0x0a
.code
LME3:

⌨️ 快捷键说明

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