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

📄 os_time.asm

📁 此代码是ucos-II在凌阳61单片机上的移植
💻 ASM
📖 第 1 页 / 共 3 页
字号:
// GCC for SUNPLUS u'nSP version 1.0.21-3
// Command: D:\PROGRA~1\Sunplus\UNSPID~1.0\cc1.exe C:\DOCUME~1\inhow\LOCALS~1\Temp\ccYDaaaa.i -fkeep-inline-functions -quiet -dumpbase os_time.c -mglobal-var-iram -gstabs -Wall -o .\Debug/os_time.asm
	.external __sn_func_ptr_sec

// gcc2_compiled.:

.debug
	.dw '.stabs "C:/61ucostest/",0x64,0,3,',0,0,offset Ltext0,seg Ltext0,0x0d,0x0a
.code
.debug
	.dw '.stabs "C:/61ucostest/os_time.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 "BOOLEAN:t20=11",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "INT8U:t21=11",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "INT8S:t22=10",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "INT16U:t23=4",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "INT16S:t24=1",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "INT32U:t25=5",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "INT32S:t26=3",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "FP32:t27=12",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "fp64:t28=13",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "OS_STK:t29=2",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "os_event:T30=s24OSEventType:21,0,16;OSEventPtr:31=*19,16,16;\\",128,0,0,0',0x0d,0x0a
	.DW '.stabs "OSEventCnt:23,32,16;OSEventGrp:21,48,16;OSEventTbl:32=ar1;0;3;21,64,64;\\",128,0,0,0',0x0d,0x0a
	.DW '.stabs "OSEventName:33=ar1;0;15;21,128,256;;",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "OS_EVENT:t34=30",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "os_sem_data:T35=s6OSCnt:23,0,16;OSEventTbl:32,16,64;\\",128,0,0,0',0x0d,0x0a
	.DW '.stabs "OSEventGrp:21,80,16;;",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "OS_SEM_DATA:t36=35",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "os_stk_data:T37=s4OSFree:25,0,32;OSUsed:25,32,32;;",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "OS_STK_DATA:t38=37",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "os_tcb:T39=s60OSTCBStkPtr:40=*29,0,16;OSTCBExtPtr:31,16,16;\\",128,0,0,0',0x0d,0x0a
	.DW '.stabs "OSTCBStkBottom:40,32,16;OSTCBStkSize:25,48,32;\\",128,0,0,0',0x0d,0x0a
	.DW '.stabs "OSTCBOpt:23,80,16;OSTCBId:23,96,16;OSTCBNext:41=*39,112,16;\\",128,0,0,0',0x0d,0x0a
	.DW '.stabs "OSTCBPrev:41,128,16;OSTCBEventPtr:42=*34,144,16;\\",128,0,0,0',0x0d,0x0a
	.DW '.stabs "OSTCBDly:23,160,16;OSTCBStat:21,176,16;OSTCBPendTO:20,192,16;\\",128,0,0,0',0x0d,0x0a
	.DW '.stabs "OSTCBPrio:21,208,16;OSTCBX:21,224,16;OSTCBY:21,240,16;\\",128,0,0,0',0x0d,0x0a
	.DW '.stabs "OSTCBBitX:21,256,16;OSTCBBitY:21,272,16;OSTCBDelReq:21,288,16;\\",128,0,0,0',0x0d,0x0a
	.DW '.stabs "OSTCBCtxSwCtr:25,304,32;OSTCBCyclesTot:25,336,32;\\",128,0,0,0',0x0d,0x0a
	.DW '.stabs "OSTCBCyclesStart:25,368,32;OSTCBStkBase:40,400,16;\\",128,0,0,0',0x0d,0x0a
	.DW '.stabs "OSTCBStkUsed:25,416,32;OSTCBTaskName:43=ar1;0;31;21,448,512;;",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "OS_TCB:t44=39",128,0,0,0',0x0d,0x0a
.CODE
.code
.debug
	.dw '.stabs "OSTimeDly:F19",36,0,0,',0,0,offset _OSTimeDly,seg _OSTimeDly,0x0d,0x0a
.CODE
.public _OSTimeDly
_OSTimeDly:	.proc
.debug
	.dw '.stabn 0x44,0,37,',0,0
	.dd LM1-_OSTimeDly
	.dw 0x0d,0x0a
.code
LM1:
	// total=4, vars=4
	// frame_pointer_needed: 1
	push bp to [sp]
	sp-=4
	bp=sp+1

	R1=BP+7
	[bp+1]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,38,',0,0
	.dd LM2-_OSTimeDly
	.dw 0x0d,0x0a
.code
LM2:
LBB2:
.debug
	.dw '.stabn 0x44,0,45,',0,0
	.dd LM3-_OSTimeDly
	.dw 0x0d,0x0a
.code
LM3:
	R2=[bp+1]	// QImode move
	R1=[R2]	// QImode move
	CMP R1,0	// QImode test
	NSJZ L3	//QImode EQ
.debug
	.dw '.stabn 0x44,0,46,',0,0
	.dd LM4-_OSTimeDly
	.dw 0x0d,0x0a
.code
LM4:
LBB3:
	call _Critical_in	// call with return value
.debug
	.dw '.stabn 0x44,0,47,',0,0
	.dd LM5-_OSTimeDly
	.dw 0x0d,0x0a
.code
LM5:
	R2=[_OSTCBCur]	// QImode move
	R1=R2	// QImode move
	R2=R2+15
	R3=R2	// QImode move
	R1=[R3]	// QImode move
	[BP]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,48,',0,0
	.dd LM6-_OSTimeDly
	.dw 0x0d,0x0a
.code
LM6:
	R1=_OSRdyTbl	// QImode move
	R2=[BP]	// QImode move
	R1 = R1 + R2	//addqi3
	R2=_OSRdyTbl	// QImode move
	R3=[BP]	// QImode move
	R2 = R2 + R3	//addqi3
	R4=[_OSTCBCur]	// QImode move
	R3=R4	// QImode move
	R4=R4+16
	R3=R4	// QImode move
	R3=[R3]	// QImode move
	[bp+2]=R3	// QImode move
	R4=[bp+2]	// QImode move
	R4=R4^0xffff	// one_cmplqi2
	[bp+3]=R4	// QImode move
	R3=R2	// QImode move
	R4=[R3]	// QImode move
	R3=[bp+3]	// QImode move
	R4&=R3
	R3=R1	// QImode move
	[R3]=R4	// QImode move
.debug
	.dw '.stabn 0x44,0,49,',0,0
	.dd LM7-_OSTimeDly
	.dw 0x0d,0x0a
.code
LM7:
	R1=_OSRdyTbl	// QImode move
	R2=[BP]	// QImode move
	R1 = R1 + R2	//addqi3
	R3=R1	// QImode move
	R2=[R3]	// QImode move
	CMP R2,0	// QImode test
	NSJNZ L4	//QImode NE
.debug
	.dw '.stabn 0x44,0,50,',0,0
	.dd LM8-_OSTimeDly
	.dw 0x0d,0x0a
.code
LM8:
	R2=[_OSTCBCur]	// QImode move
	R1=R2	// QImode move
	R2=R2+17
	R4=R2	// QImode move
	R3=[R4]	// QImode move
	R1=R3^0xffff	// one_cmplqi2
	R2=[_OSRdyGrp]	// QImode move
	R2&=R1
	[_OSRdyGrp]=R2	// QImode move
L4:
.debug
	.dw '.stabn 0x44,0,52,',0,0
	.dd LM9-_OSTimeDly
	.dw 0x0d,0x0a
.code
LM9:
	R2=[_OSTCBCur]	// QImode move
	R1=R2	// QImode move
	R2=R2+10
	R3=[bp+1]	// QImode move
	R1=[R3]	// QImode move
	R4=R2	// QImode move
	[R4]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,53,',0,0
	.dd LM10-_OSTimeDly
	.dw 0x0d,0x0a
.code
LM10:
	call _Critical_out	// call with return value
.debug
	.dw '.stabn 0x44,0,54,',0,0
	.dd LM11-_OSTimeDly
	.dw 0x0d,0x0a
.code
LM11:
	call _OS_Sched	// call without return value
.debug
	.dw '.stabn 0x44,0,55,',0,0
	.dd LM12-_OSTimeDly
	.dw 0x0d,0x0a
.code
LM12:
LBE3:
L3:
.debug
	.dw '.stabn 0x44,0,56,',0,0
	.dd LM13-_OSTimeDly
	.dw 0x0d,0x0a
.code
LM13:
LBE2:
.debug
	.dw '.stabn 0x44,0,56,',0,0
	.dd LM14-_OSTimeDly
	.dw 0x0d,0x0a
.code
LM14:
L2:

	sp+=4
	pop bp from [sp]
	retf
	.endp	// end of OSTimeDly

.debug
	.dw '.stabs "ticks:p23",160,0,0,7',0x0d,0x0a
.CODE
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB2-_OSTimeDly
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabs "y:21",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB3-_OSTimeDly
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE3-_OSTimeDly
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE2-_OSTimeDly
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabf ',0,0
	.dd LME1-_OSTimeDly
	.dw 0x0d,0x0a
.code
LME1:
.code
.debug
	.dw '.stabs "OSTimeDlyHMSM:F21",36,0,0,',0,0,offset _OSTimeDlyHMSM,seg _OSTimeDlyHMSM,0x0d,0x0a
.CODE
.public _OSTimeDlyHMSM
_OSTimeDlyHMSM:	.proc
.debug
	.dw '.stabn 0x44,0,85,',0,0
	.dd LM15-_OSTimeDlyHMSM
	.dw 0x0d,0x0a
.code
LM15:
	// total=34, vars=34
	// frame_pointer_needed: 1
	push bp to [sp]
	sp-=34
	bp=sp+1

	R1=BP+37
	[bp+3]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,86,',0,0
	.dd LM16-_OSTimeDlyHMSM
	.dw 0x0d,0x0a
.code
LM16:
LBB4:
.debug
	.dw '.stabn 0x44,0,91,',0,0
	.dd LM17-_OSTimeDlyHMSM
	.dw 0x0d,0x0a
.code
LM17:
	R2=[bp+3]	// QImode move
	R1=[R2]	// QImode move
	CMP R1,0	// QImode test
	NSJNZ L8	//QImode NE
.debug
	.dw '.stabn 0x44,0,92,',0,0
	.dd LM18-_OSTimeDlyHMSM
	.dw 0x0d,0x0a
.code
LM18:
	R1=[bp+3]	// QImode move
	R3=[bp+3]	// QImode move
	R2=R3+1
	R4=R2	// QImode move
	R1=[R4]	// QImode move
	CMP R1,0	// QImode test
	NSJNZ L8	//QImode NE
.debug
	.dw '.stabn 0x44,0,93,',0,0
	.dd LM19-_OSTimeDlyHMSM
	.dw 0x0d,0x0a
.code
LM19:
	R1=[bp+3]	// QImode move
	R1=[bp+3]	// QImode move
	R2=R1+2
	R3=R2	// QImode move
	R1=[R3]	// QImode move
	CMP R1,0	// QImode test
	NSJNZ L8	//QImode NE
.debug
	.dw '.stabn 0x44,0,94,',0,0
	.dd LM20-_OSTimeDlyHMSM
	.dw 0x0d,0x0a
.code
LM20:
	R1=[bp+3]	// QImode move
	R4=[bp+3]	// QImode move
	R2=R4+3
	R3=R2	// QImode move
	R1=[R3]	// QImode move
	CMP R1,0	// QImode test
	NSJNZ L8	//QImode NE
.debug
	.dw '.stabn 0x44,0,95,',0,0
	.dd LM21-_OSTimeDlyHMSM
	.dw 0x0d,0x0a
.code
LM21:
	R1=84	// QImode move
	pc=L7	// Indirect jump
L11:
L10:
L9:
L8:
.debug
	.dw '.stabn 0x44,0,100,',0,0
	.dd LM22-_OSTimeDlyHMSM
	.dw 0x0d,0x0a
.code
LM22:
	R1=[bp+3]	// QImode move
	R4=[bp+3]	// QImode move
	R2=R4+1
	R3=R2	// QImode move
	R1=[R3]	// QImode move
	CMP R1,59	// QImode compare
	NSJNA L12	//QImode LEU
.debug
	.dw '.stabn 0x44,0,101,',0,0
	.dd LM23-_OSTimeDlyHMSM
	.dw 0x0d,0x0a
.code
LM23:
	R1=81	// QImode move
	pc=L7	// Indirect jump
L12:
.debug
	.dw '.stabn 0x44,0,103,',0,0
	.dd LM24-_OSTimeDlyHMSM
	.dw 0x0d,0x0a
.code
LM24:
	R1=[bp+3]	// QImode move
	R4=[bp+3]	// QImode move
	R2=R4+2
	R3=R2	// QImode move
	R1=[R3]	// QImode move
	CMP R1,59	// QImode compare
	NSJNA L13	//QImode LEU
.debug
	.dw '.stabn 0x44,0,104,',0,0
	.dd LM25-_OSTimeDlyHMSM
	.dw 0x0d,0x0a
.code
LM25:
	R1=82	// QImode move
	pc=L7	// Indirect jump
L13:
.debug
	.dw '.stabn 0x44,0,106,',0,0
	.dd LM26-_OSTimeDlyHMSM
	.dw 0x0d,0x0a
.code
LM26:
	R1=[bp+3]	// QImode move
	R4=[bp+3]	// QImode move
	R2=R4+3
	R3=R2	// QImode move
	R1=[R3]	// QImode move
	CMP R1,999	// QImode compare
	NSJNA L14	//QImode LEU
.debug
	.dw '.stabn 0x44,0,107,',0,0
	.dd LM27-_OSTimeDlyHMSM
	.dw 0x0d,0x0a
.code
LM27:
	R1=83	// QImode move
	pc=L7	// Indirect jump
L14:
.debug
	.dw '.stabn 0x44,0,112,',0,0
	.dd LM28-_OSTimeDlyHMSM
	.dw 0x0d,0x0a
.code
LM28:
	R4=[bp+3]	// QImode move
	R1=[R4]	// QImode move
	R2=3600	// QImode move
	mr=R1*R2	// R3=R1*R2 32bit=16bit*16bit
	//split [bp+30], R3
	[bp+30]=R3	// QImode move
	[bp+31]=R4	// QImode move
	R4=[bp+3]	// QImode move
	R2=[R4]	// QImode move
	// ashrqi3_rr1 R1 R2 15
	R1=R2 asr 3
	R1=R1 asr 4
	R1=R1 asr 4
	R1=R1 asr 4

⌨️ 快捷键说明

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