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

📄 os_time.asm

📁 此代码是ucos-II在凌阳61单片机上的移植
💻 ASM
📖 第 1 页 / 共 2 页
字号:
	.dw '.stabn 0x44,0,97,',0,0
	.dd LM23-_OSTimeDlyHMSM
	.dw 0x0d,0x0a
.code
LM23:
	R1=[BP]	// QImode move
	[SP--]=R1	// QImode move
	call _OSTimeDly	// call without return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,98,',0,0
	.dd LM24-_OSTimeDlyHMSM
	.dw 0x0d,0x0a
.code
LM24:
L16:
	R1=BP	// QImode move
	R2=BP+2
	R4=R2	// QImode move
	R1=[R4]	// QImode move
	CMP R1,0	// QImode test
	NSJNZ L18	//QImode NE
	pc=L17	// Indirect jump
L18:
.debug
	.dw '.stabn 0x44,0,99,',0,0
	.dd LM25-_OSTimeDlyHMSM
	.dw 0x0d,0x0a
.code
LM25:
	R1=(-32768)	// QImode move
	[SP--]=R1	// QImode move
	call _OSTimeDly	// call without return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,100,',0,0
	.dd LM26-_OSTimeDlyHMSM
	.dw 0x0d,0x0a
.code
LM26:
	R1=(-32768)	// QImode move
	[SP--]=R1	// QImode move
	call _OSTimeDly	// call without return value
	SP = SP + 1	//SP
.debug
	.dw '.stabn 0x44,0,101,',0,0
	.dd LM27-_OSTimeDlyHMSM
	.dw 0x0d,0x0a
.code
LM27:
	R1=BP	// QImode move
	R2=BP+2
	R3=BP	// QImode move
	R1=BP+2
	R2=BP	// QImode move
	R3=BP+2
	R4=R3	// QImode move
	R2=[R4]	// QImode move
	R3=R2+(-1)
	R2=R1	// QImode move
	[R2]=R3	// QImode move
.debug
	.dw '.stabn 0x44,0,102,',0,0
	.dd LM28-_OSTimeDlyHMSM
	.dw 0x0d,0x0a
.code
LM28:
	pc=L16	// Indirect jump
L17:
.debug
	.dw '.stabn 0x44,0,103,',0,0
	.dd LM29-_OSTimeDlyHMSM
	.dw 0x0d,0x0a
.code
LM29:
	R1=0	// QImode move
	pc=L7	// Indirect jump
.debug
	.dw '.stabn 0x44,0,104,',0,0
	.dd LM30-_OSTimeDlyHMSM
	.dw 0x0d,0x0a
.code
LM30:
	pc=L19	// Indirect jump
L8:
.debug
	.dw '.stabn 0x44,0,105,',0,0
	.dd LM31-_OSTimeDlyHMSM
	.dw 0x0d,0x0a
.code
LM31:
	R1=84	// QImode move
	pc=L7	// Indirect jump
L19:
.debug
	.dw '.stabn 0x44,0,107,',0,0
	.dd LM32-_OSTimeDlyHMSM
	.dw 0x0d,0x0a
.code
LM32:
LBE2:
.debug
	.dw '.stabn 0x44,0,107,',0,0
	.dd LM33-_OSTimeDlyHMSM
	.dw 0x0d,0x0a
.code
LM33:
L7:

	sp+=34
	pop bp from [sp]
	retf
	.endp	// end of OSTimeDlyHMSM

.debug
	.dw '.stabs "hours:p21",160,0,0,37',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "minutes:p21",160,0,0,38',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "seconds:p21",160,0,0,39',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "milli:p23",160,0,0,40',0x0d,0x0a
.CODE
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB2-_OSTimeDlyHMSM
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabs "ticks:25",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabs "loops:23",128,0,0,2',0x0d,0x0a
.CODE
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE2-_OSTimeDlyHMSM
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabf ',0,0
	.dd LME2-_OSTimeDlyHMSM
	.dw 0x0d,0x0a
.code
LME2:
.code
.debug
	.dw '.stabs "OSTimeDlyResume:F21",36,0,0,',0,0,offset _OSTimeDlyResume,seg _OSTimeDlyResume,0x0d,0x0a
.CODE
.public _OSTimeDlyResume
_OSTimeDlyResume:	.proc
.debug
	.dw '.stabn 0x44,0,134,',0,0
	.dd LM34-_OSTimeDlyResume
	.dw 0x0d,0x0a
.code
LM34:
	// 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,135,',0,0
	.dd LM35-_OSTimeDlyResume
	.dw 0x0d,0x0a
.code
LM35:
LBB3:
.debug
	.dw '.stabn 0x44,0,138,',0,0
	.dd LM36-_OSTimeDlyResume
	.dw 0x0d,0x0a
.code
LM36:
	R2=[bp+1]	// QImode move
	R1=[R2]	// QImode move
	CMP R1,11	// QImode compare
	NSJNA L32	//QImode LEU
.debug
	.dw '.stabn 0x44,0,139,',0,0
	.dd LM37-_OSTimeDlyResume
	.dw 0x0d,0x0a
.code
LM37:
	R1=42	// QImode move
	pc=L31	// Indirect jump
L32:
.debug
	.dw '.stabn 0x44,0,141,',0,0
	.dd LM38-_OSTimeDlyResume
	.dw 0x0d,0x0a
.code
LM38:
// GCC inline ASM start
	INT OFF 
	
// GCC inline ASM end
.debug
	.dw '.stabn 0x44,0,142,',0,0
	.dd LM39-_OSTimeDlyResume
	.dw 0x0d,0x0a
.code
LM39:
	R1=_OSTCBPrioTbl	// QImode move
	R3=[bp+1]	// QImode move
	R2=[R3]	// QImode move
	R1 = R1 + R2	//addqi3
	R4=R1	// QImode move
	R2=[R4]	// QImode move
	[BP]=R2	// QImode move
.debug
	.dw '.stabn 0x44,0,143,',0,0
	.dd LM40-_OSTimeDlyResume
	.dw 0x0d,0x0a
.code
LM40:
	R1=[BP]	// QImode move
	CMP R1,0	// QImode test
	NSJZ L33	//QImode EQ
.debug
	.dw '.stabn 0x44,0,144,',0,0
	.dd LM41-_OSTimeDlyResume
	.dw 0x0d,0x0a
.code
LM41:
	R2=[BP]	// QImode move
	R1=R2	// QImode move
	R2=R2+4
	R3=R2	// QImode move
	R1=[R3]	// QImode move
	CMP R1,0	// QImode test
	NSJZ L34	//QImode EQ
.debug
	.dw '.stabn 0x44,0,145,',0,0
	.dd LM42-_OSTimeDlyResume
	.dw 0x0d,0x0a
.code
LM42:
	R2=[BP]	// QImode move
	R1=R2	// QImode move
	R2=R2+4
	R1=0	// QImode move
	R4=R2	// QImode move
	[R4]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,146,',0,0
	.dd LM43-_OSTimeDlyResume
	.dw 0x0d,0x0a
.code
LM43:
	R2=[BP]	// QImode move
	R1=R2	// QImode move
	R2=R2+5
	R3=R2	// QImode move
	R3=[R3]	// QImode move
	R1=R3&8
	CMP R1,0	// QImode test
	NSJNZ L35	//QImode NE
.debug
	.dw '.stabn 0x44,0,147,',0,0
	.dd LM44-_OSTimeDlyResume
	.dw 0x0d,0x0a
.code
LM44:
	R2=[BP]	// QImode move
	R1=R2	// QImode move
	R2=R2+10
	R1=[_OSRdyGrp]	// QImode move
	R4=R2	// QImode move
	R4=[R4]	// QImode move
	R1|=R4
	[_OSRdyGrp]=R1	// QImode move
.debug
	.dw '.stabn 0x44,0,148,',0,0
	.dd LM45-_OSTimeDlyResume
	.dw 0x0d,0x0a
.code
LM45:
	R2=[BP]	// QImode move
	R1=R2	// QImode move
	R2=R2+8
	R1=R2	// QImode move
	R3=[R1]	// QImode move
	R1=R3	// QImode move
	R1=R1+_OSRdyTbl
	R3=[BP]	// QImode move
	R2=R3	// QImode move
	R3=R3+8
	R2=R3	// QImode move
	R4=[R2]	// QImode move
	[bp+2]=R4	// QImode move
	R3=[bp+2]	// QImode move
	R3=R3+_OSRdyTbl
	[bp+2]=R3	// QImode move
	R4=[BP]	// QImode move
	R3=R4	// QImode move
	R2=R4+9
	[bp+3]=R2	// QImode move
	R3=[bp+2]	// QImode move
	R4=[R3]	// QImode move
	R3=[bp+3]	// QImode move
	R3=[R3]	// QImode move
	R4|=R3
	R3=R1	// QImode move
	[R3]=R4	// QImode move
.debug
	.dw '.stabn 0x44,0,149,',0,0
	.dd LM46-_OSTimeDlyResume
	.dw 0x0d,0x0a
.code
LM46:
// GCC inline ASM start
	INT IRQ 
	INT FIQ 
	
// GCC inline ASM end
.debug
	.dw '.stabn 0x44,0,150,',0,0
	.dd LM47-_OSTimeDlyResume
	.dw 0x0d,0x0a
.code
LM47:
	call _OSSched	// call without return value
.debug
	.dw '.stabn 0x44,0,151,',0,0
	.dd LM48-_OSTimeDlyResume
	.dw 0x0d,0x0a
.code
LM48:
	pc=L36	// Indirect jump
L35:
.debug
	.dw '.stabn 0x44,0,152,',0,0
	.dd LM49-_OSTimeDlyResume
	.dw 0x0d,0x0a
.code
LM49:
// GCC inline ASM start
	INT IRQ 
	INT FIQ 
	
// GCC inline ASM end
L36:
.debug
	.dw '.stabn 0x44,0,154,',0,0
	.dd LM50-_OSTimeDlyResume
	.dw 0x0d,0x0a
.code
LM50:
	R1=0	// QImode move
	pc=L31	// Indirect jump
.debug
	.dw '.stabn 0x44,0,155,',0,0
	.dd LM51-_OSTimeDlyResume
	.dw 0x0d,0x0a
.code
LM51:
	pc=L37	// Indirect jump
L34:
.debug
	.dw '.stabn 0x44,0,156,',0,0
	.dd LM52-_OSTimeDlyResume
	.dw 0x0d,0x0a
.code
LM52:
// GCC inline ASM start
	INT IRQ 
	INT FIQ 
	
// GCC inline ASM end
.debug
	.dw '.stabn 0x44,0,157,',0,0
	.dd LM53-_OSTimeDlyResume
	.dw 0x0d,0x0a
.code
LM53:
	R1=80	// QImode move
	pc=L31	// Indirect jump
L37:
.debug
	.dw '.stabn 0x44,0,159,',0,0
	.dd LM54-_OSTimeDlyResume
	.dw 0x0d,0x0a
.code
LM54:
	pc=L38	// Indirect jump
L33:
.debug
	.dw '.stabn 0x44,0,160,',0,0
	.dd LM55-_OSTimeDlyResume
	.dw 0x0d,0x0a
.code
LM55:
// GCC inline ASM start
	INT IRQ 
	INT FIQ 
	
// GCC inline ASM end
.debug
	.dw '.stabn 0x44,0,161,',0,0
	.dd LM56-_OSTimeDlyResume
	.dw 0x0d,0x0a
.code
LM56:
	R1=11	// QImode move
	pc=L31	// Indirect jump
L38:
.debug
	.dw '.stabn 0x44,0,163,',0,0
	.dd LM57-_OSTimeDlyResume
	.dw 0x0d,0x0a
.code
LM57:
LBE3:
.debug
	.dw '.stabn 0x44,0,163,',0,0
	.dd LM58-_OSTimeDlyResume
	.dw 0x0d,0x0a
.code
LM58:
L31:

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

.debug
	.dw '.stabs "prio:p21",160,0,0,7',0x0d,0x0a
.CODE
.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB3-_OSTimeDlyResume
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabs "ptcb:41=*40",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE3-_OSTimeDlyResume
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabf ',0,0
	.dd LME3-_OSTimeDlyResume
	.dw 0x0d,0x0a
.code
LME3:
.code
.debug
	.dw '.stabs "OSTimeGet:F25",36,0,0,',0,0,offset _OSTimeGet,seg _OSTimeGet,0x0d,0x0a
.CODE
.public _OSTimeGet
_OSTimeGet:	.proc
.debug
	.dw '.stabn 0x44,0,179,',0,0
	.dd LM59-_OSTimeGet
	.dw 0x0d,0x0a
.code
LM59:
	// total=4, vars=4
	// frame_pointer_needed: 1
	push bp to [sp]
	sp-=4
	bp=sp+1

	R3=BP+7
.debug
	.dw '.stabn 0x44,0,180,',0,0
	.dd LM60-_OSTimeGet
	.dw 0x0d,0x0a
.code
LM60:
LBB4:
.debug
	.dw '.stabn 0x44,0,183,',0,0
	.dd LM61-_OSTimeGet
	.dw 0x0d,0x0a
.code
LM61:
// GCC inline ASM start
	INT OFF 
	
// GCC inline ASM end
.debug
	.dw '.stabn 0x44,0,184,',0,0
	.dd LM62-_OSTimeGet
	.dw 0x0d,0x0a
.code
LM62:
	//split R1, [_OSTime]
	R1=[_OSTime]	// QImode move
	R2=[_OSTime+1]	// QImode move
	//split [BP], R1
	[BP]=R1	// QImode move
	[bp+1]=R2	// QImode move
.debug
	.dw '.stabn 0x44,0,185,',0,0
	.dd LM63-_OSTimeGet
	.dw 0x0d,0x0a
.code
LM63:
// GCC inline ASM start
	INT IRQ 
	INT FIQ 
	
// GCC inline ASM end
.debug
	.dw '.stabn 0x44,0,186,',0,0
	.dd LM64-_OSTimeGet
	.dw 0x0d,0x0a
.code
LM64:
	//split R1, [BP]
	R1=[BP]	// QImode move
	R2=[bp+1]	// QImode move
	//split [bp+2], R1
	[bp+2]=R1	// QImode move
	[bp+3]=R2	// QImode move
	//split R1, [bp+2]
	R1=[bp+2]	// QImode move
	R2=[bp+3]	// QImode move
	pc=L43	// Indirect jump
.debug
	.dw '.stabn 0x44,0,187,',0,0
	.dd LM65-_OSTimeGet
	.dw 0x0d,0x0a
.code
LM65:
LBE4:
.debug
	.dw '.stabn 0x44,0,187,',0,0
	.dd LM66-_OSTimeGet
	.dw 0x0d,0x0a
.code
LM66:
L43:

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

.debug
	.dw '.stabn 0xc0,0,0,',0,0
	.dd LBB4-_OSTimeGet
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabs "ticks:25",128,0,0,0',0x0d,0x0a
.CODE
.debug
	.dw '.stabn 0xe0,0,0,',0,0
	.dd LBE4-_OSTimeGet
	.dw 0x0d,0x0a
.code
.debug
	.dw '.stabf ',0,0
	.dd LME4-_OSTimeGet
	.dw 0x0d,0x0a
.code
LME4:
.code
.debug
	.dw '.stabs "OSTimeSet:F19",36,0,0,',0,0,offset _OSTimeSet,seg _OSTimeSet,0x0d,0x0a
.CODE
.public _OSTimeSet
_OSTimeSet:	.proc
.debug
	.dw '.stabn 0x44,0,202,',0,0
	.dd LM67-_OSTimeSet
	.dw 0x0d,0x0a
.code
LM67:
	// total=0, vars=0
	// frame_pointer_needed: 1
	push bp to [sp]
	bp=sp+1

	R1=BP+3
.debug
	.dw '.stabn 0x44,0,203,',0,0
	.dd LM68-_OSTimeSet
	.dw 0x0d,0x0a
.code
LM68:
// GCC inline ASM start
	INT OFF 
	
// GCC inline ASM end
.debug
	.dw '.stabn 0x44,0,204,',0,0
	.dd LM69-_OSTimeSet
	.dw 0x0d,0x0a
.code
LM69:
	R2=R1	// QImode move
	//split R3, [R2]
	R3=[R2++]	// QImode move
	R4=[R2--]	// QImode move
	//split [_OSTime], R3
	[_OSTime]=R3	// QImode move
	[_OSTime+1]=R4	// QImode move
.debug
	.dw '.stabn 0x44,0,205,',0,0
	.dd LM70-_OSTimeSet
	.dw 0x0d,0x0a
.code
LM70:
// GCC inline ASM start
	INT IRQ 
	INT FIQ 
	
// GCC inline ASM end
.debug
	.dw '.stabn 0x44,0,206,',0,0
	.dd LM71-_OSTimeSet
	.dw 0x0d,0x0a
.code
LM71:
.debug
	.dw '.stabn 0x44,0,206,',0,0
	.dd LM72-_OSTimeSet
	.dw 0x0d,0x0a
.code
LM72:
L44:

	pop bp from [sp]
	retf
	.endp	// end of OSTimeSet

.debug
	.dw '.stabs "ticks:p25",160,0,0,3',0x0d,0x0a
.CODE
.debug
	.dw '.stabf ',0,0
	.dd LME5-_OSTimeSet
	.dw 0x0d,0x0a
.code
LME5:
.external _OSTime
.external _OSTCBPrioTbl
.external _OSSched
.external _OSRdyGrp
.external _OSTCBCur
.external _OSRdyTbl
.external __divu2
.external __lshiu2
	.end

⌨️ 快捷键说明

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