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

📄 os_cpu_c.asm

📁 此代码是ucos-II在凌阳61单片机上的移植
💻 ASM
📖 第 1 页 / 共 2 页
字号:
	push bp to [sp]
	bp=sp+1

	R1=BP+3
.debug
	.dw '.stabn 0x44,0,31,',0,0
	.dd LM21-_OSTaskDelHook
	.dw 0x0d,0x0a
.code
LM21:
.debug
	.dw '.stabn 0x44,0,31,',0,0
	.dd LM22-_OSTaskDelHook
	.dw 0x0d,0x0a
.code
LM22:
L4:

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

.debug
	.dw '.stabs "ptcb:p47",160,0,0,3',0x0d,0x0a
.CODE
.debug
	.dw '.stabf ',0,0
	.dd LME3-_OSTaskDelHook
	.dw 0x0d,0x0a
.code
LME3:
.code
.debug
	.dw '.stabs "OSTaskSwHook:F19",36,0,0,',0,0,offset _OSTaskSwHook,seg _OSTaskSwHook,0x0d,0x0a
.CODE
.public _OSTaskSwHook
_OSTaskSwHook:	.proc
.debug
	.dw '.stabn 0x44,0,34,',0,0
	.dd LM23-_OSTaskSwHook
	.dw 0x0d,0x0a
.code
LM23:
	// total=0, vars=0
	// frame_pointer_needed: 1
	push bp to [sp]
	bp=sp+1

	R1=BP+3
.debug
	.dw '.stabn 0x44,0,35,',0,0
	.dd LM24-_OSTaskSwHook
	.dw 0x0d,0x0a
.code
LM24:
L5:

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

.debug
	.dw '.stabf ',0,0
	.dd LME4-_OSTaskSwHook
	.dw 0x0d,0x0a
.code
LME4:
.code
.debug
	.dw '.stabs "OSTaskIdleHook:F19",36,0,0,',0,0,offset _OSTaskIdleHook,seg _OSTaskIdleHook,0x0d,0x0a
.CODE
.public _OSTaskIdleHook
_OSTaskIdleHook:	.proc
.debug
	.dw '.stabn 0x44,0,38,',0,0
	.dd LM25-_OSTaskIdleHook
	.dw 0x0d,0x0a
.code
LM25:
	// total=0, vars=0
	// frame_pointer_needed: 1
	push bp to [sp]
	bp=sp+1

	R1=BP+3
.debug
	.dw '.stabn 0x44,0,39,',0,0
	.dd LM26-_OSTaskIdleHook
	.dw 0x0d,0x0a
.code
LM26:
L6:

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

.debug
	.dw '.stabf ',0,0
	.dd LME5-_OSTaskIdleHook
	.dw 0x0d,0x0a
.code
LME5:
.code
.debug
	.dw '.stabs "OSTaskStatHook:F19",36,0,0,',0,0,offset _OSTaskStatHook,seg _OSTaskStatHook,0x0d,0x0a
.CODE
.public _OSTaskStatHook
_OSTaskStatHook:	.proc
.debug
	.dw '.stabn 0x44,0,42,',0,0
	.dd LM27-_OSTaskStatHook
	.dw 0x0d,0x0a
.code
LM27:
	// total=0, vars=0
	// frame_pointer_needed: 1
	push bp to [sp]
	bp=sp+1

	R1=BP+3
.debug
	.dw '.stabn 0x44,0,43,',0,0
	.dd LM28-_OSTaskStatHook
	.dw 0x0d,0x0a
.code
LM28:
L7:

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

.debug
	.dw '.stabf ',0,0
	.dd LME6-_OSTaskStatHook
	.dw 0x0d,0x0a
.code
LME6:
.code
.debug
	.dw '.stabs "OSTimeTickHook:F19",36,0,0,',0,0,offset _OSTimeTickHook,seg _OSTimeTickHook,0x0d,0x0a
.CODE
.public _OSTimeTickHook
_OSTimeTickHook:	.proc
.debug
	.dw '.stabn 0x44,0,46,',0,0
	.dd LM29-_OSTimeTickHook
	.dw 0x0d,0x0a
.code
LM29:
	// total=0, vars=0
	// frame_pointer_needed: 1
	push bp to [sp]
	bp=sp+1

	R1=BP+3
.debug
	.dw '.stabn 0x44,0,47,',0,0
	.dd LM30-_OSTimeTickHook
	.dw 0x0d,0x0a
.code
LM30:
L8:

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

.debug
	.dw '.stabf ',0,0
	.dd LME7-_OSTimeTickHook
	.dw 0x0d,0x0a
.code
LME7:
.code
.debug
	.dw '.stabs "OSInitHookBegin:F19",36,0,0,',0,0,offset _OSInitHookBegin,seg _OSInitHookBegin,0x0d,0x0a
.CODE
.public _OSInitHookBegin
_OSInitHookBegin:	.proc
.debug
	.dw '.stabn 0x44,0,50,',0,0
	.dd LM31-_OSInitHookBegin
	.dw 0x0d,0x0a
.code
LM31:
	// total=0, vars=0
	// frame_pointer_needed: 1
	push bp to [sp]
	bp=sp+1

	R1=BP+3
.debug
	.dw '.stabn 0x44,0,51,',0,0
	.dd LM32-_OSInitHookBegin
	.dw 0x0d,0x0a
.code
LM32:
L9:

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

.debug
	.dw '.stabf ',0,0
	.dd LME8-_OSInitHookBegin
	.dw 0x0d,0x0a
.code
LME8:
.code
.debug
	.dw '.stabs "OSInitHookEnd:F19",36,0,0,',0,0,offset _OSInitHookEnd,seg _OSInitHookEnd,0x0d,0x0a
.CODE
.public _OSInitHookEnd
_OSInitHookEnd:	.proc
.debug
	.dw '.stabn 0x44,0,54,',0,0
	.dd LM33-_OSInitHookEnd
	.dw 0x0d,0x0a
.code
LM33:
	// total=0, vars=0
	// frame_pointer_needed: 1
	push bp to [sp]
	bp=sp+1

	R1=BP+3
.debug
	.dw '.stabn 0x44,0,55,',0,0
	.dd LM34-_OSInitHookEnd
	.dw 0x0d,0x0a
.code
LM34:
L10:

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

.debug
	.dw '.stabf ',0,0
	.dd LME9-_OSInitHookEnd
	.dw 0x0d,0x0a
.code
LME9:
.code
.debug
	.dw '.stabs "OSTCBInitHook:F19",36,0,0,',0,0,offset _OSTCBInitHook,seg _OSTCBInitHook,0x0d,0x0a
.CODE
.public _OSTCBInitHook
_OSTCBInitHook:	.proc
.debug
	.dw '.stabn 0x44,0,58,',0,0
	.dd LM35-_OSTCBInitHook
	.dw 0x0d,0x0a
.code
LM35:
	// total=0, vars=0
	// frame_pointer_needed: 1
	push bp to [sp]
	bp=sp+1

	R1=BP+3
.debug
	.dw '.stabn 0x44,0,60,',0,0
	.dd LM36-_OSTCBInitHook
	.dw 0x0d,0x0a
.code
LM36:
.debug
	.dw '.stabn 0x44,0,60,',0,0
	.dd LM37-_OSTCBInitHook
	.dw 0x0d,0x0a
.code
LM37:
L11:

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

.debug
	.dw '.stabs "ptcb:p47",160,0,0,3',0x0d,0x0a
.CODE
.debug
	.dw '.stabf ',0,0
	.dd LME10-_OSTCBInitHook
	.dw 0x0d,0x0a
.code
LME10:
.code
.debug
	.dw '.stabs "Critical_in:F19",36,0,0,',0,0,offset _Critical_in,seg _Critical_in,0x0d,0x0a
.CODE
.public _Critical_in
_Critical_in:	.proc
.debug
	.dw '.stabn 0x44,0,63,',0,0
	.dd LM38-_Critical_in
	.dw 0x0d,0x0a
.code
LM38:
	// total=0, vars=0
	// frame_pointer_needed: 1
	push bp to [sp]
	bp=sp+1

	R1=BP+3
.debug
	.dw '.stabn 0x44,0,64,',0,0
	.dd LM39-_Critical_in
	.dw 0x0d,0x0a
.code
LM39:
// GCC inline ASM start
	INT OFF
// GCC inline ASM end
.debug
	.dw '.stabn 0x44,0,65,',0,0
	.dd LM40-_Critical_in
	.dw 0x0d,0x0a
.code
LM40:
	R2=[_InterruptC]	// QImode move
	R3=1	// QImode move
	[_InterruptC]=R2+R3  //addqi3_Qrr
.debug
	.dw '.stabn 0x44,0,66,',0,0
	.dd LM41-_Critical_in
	.dw 0x0d,0x0a
.code
LM41:
.debug
	.dw '.stabn 0x44,0,66,',0,0
	.dd LM42-_Critical_in
	.dw 0x0d,0x0a
.code
LM42:
L12:

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

.debug
	.dw '.stabf ',0,0
	.dd LME11-_Critical_in
	.dw 0x0d,0x0a
.code
LME11:
.code
.debug
	.dw '.stabs "Critical_out:F19",36,0,0,',0,0,offset _Critical_out,seg _Critical_out,0x0d,0x0a
.CODE
.public _Critical_out
_Critical_out:	.proc
.debug
	.dw '.stabn 0x44,0,69,',0,0
	.dd LM43-_Critical_out
	.dw 0x0d,0x0a
.code
LM43:
	// total=0, vars=0
	// frame_pointer_needed: 1
	push bp to [sp]
	bp=sp+1

	R1=BP+3
.debug
	.dw '.stabn 0x44,0,70,',0,0
	.dd LM44-_Critical_out
	.dw 0x0d,0x0a
.code
LM44:
	R2=[_InterruptC]	// QImode move
	R3=(-1)	// QImode move
	[_InterruptC]=R2+R3  //addqi3_Qrr
.debug
	.dw '.stabn 0x44,0,71,',0,0
	.dd LM45-_Critical_out
	.dw 0x0d,0x0a
.code
LM45:
	R2=[_InterruptC]	// QImode move
	CMP R2,0	// QImode test
	NSJNZ L14	//QImode NE
.debug
	.dw '.stabn 0x44,0,72,',0,0
	.dd LM46-_Critical_out
	.dw 0x0d,0x0a
.code
LM46:
// GCC inline ASM start
	INT IRQ
// GCC inline ASM end
L14:
.debug
	.dw '.stabn 0x44,0,73,',0,0
	.dd LM47-_Critical_out
	.dw 0x0d,0x0a
.code
LM47:
.debug
	.dw '.stabn 0x44,0,73,',0,0
	.dd LM48-_Critical_out
	.dw 0x0d,0x0a
.code
LM48:
L13:

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

.debug
	.dw '.stabf ',0,0
	.dd LME12-_Critical_out
	.dw 0x0d,0x0a
.code
LME12:
.iram
.public _InterruptC
_InterruptC:
	.dw 0
	.end

⌨️ 快捷键说明

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